Skip to main content
A newer version of this page is available. .

PivotGridFieldCollection.AddDataSourceColumn(String, PivotArea) Method

Adds a field to the PivotGridFieldCollection collection.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.PivotGrid

Declaration

public PivotGridField AddDataSourceColumn(
    string columnName,
    PivotArea area
)

Parameters

Name Type Description
columnName String

A String value that specifies a column name.

area PivotArea

A PivotArea value that identifies the area in which the new PivotGridField object will be positioned.

Returns

Type Description
PivotGridField

The PivotGridField object that was added to the collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddDataSourceColumn(String, PivotArea) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also