Skip to main content

PivotSummaryDataSource.GetColumnIndex(PivotGridFieldBase) Method

Returns the index of the column that corresponds to the specified field.

Namespace: DevExpress.XtraPivotGrid

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

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


public int GetColumnIndex(
    PivotGridFieldBase field


Name Type Description
field PivotGridFieldBase

A PivotGridFieldBase object that represents the pivot grid field used to identify the summary data source column.


Type Description

An integer value that specifies the zero-based index of the summary data source column that corresponds to the specified field.


To obtain the pivot grid field by the corresponding column’s index, use the PivotSummaryDataSource.GetField method.

To obtain the index of a particular row, use the PivotSummaryDataSource.GetRowIndex method.

See Also