All docs
V20.2
21.1 (EAP/Beta)
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

PivotGridFieldCollectionBase.AddDataSourceColumn(String, PivotArea) Method

Adds a new field to the collection. The field is bound to the specified column in the data source and positioned in the specified PivotGrid area.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.2.Core.dll

Declaration

public PivotGridFieldBase AddDataSourceColumn(
    string columnName,
    PivotArea area
)

Parameters

Name Type Description
columnName String

A String that is the data source column name.

area PivotArea

A PivotArea enumeration member that specifies the PivotGrid area.

Returns

Type
PivotGridFieldBase

Remarks

In Optimized mode this method uses the Data Binding API and creates a PivotGrid field with the DataBinding property set to the DataSourceColumnBinding instance.

See Also