PivotGridFieldCollectionBase.AddDataSourceColumn(String, PivotArea) Method
In This Article
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.v24.2.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
#Declaration
public PivotGridFieldBase AddDataSourceColumn(
string columnName,
PivotArea area
)
#Parameters
Name | Type | Description |
---|---|---|
column |
String | A String that is the data source column name. |
area | Pivot |
A Pivot |
#Returns
Type |
---|
Pivot |
#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