Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotSummaryDataSource.GetColumnIndex(PivotGridField) Method

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

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public int GetColumnIndex(
    PivotGridField field
)

#Parameters

Name Type Description
field PivotGridField

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

#Returns

Type Description
Int32

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

#Remarks

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