PivotGridFieldSortConditionCollection.IndexOf(PivotGridFieldBase) Method
In This Article
Returns the index of the sort condition that corresponds to the specified field.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v24.2.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
#Declaration
public int IndexOf(
PivotGridFieldBase field
)
#Parameters
Name | Type | Description |
---|---|---|
field | Pivot |
A Pivot |
#Returns
Type | Description |
---|---|
Int32 | An integer value that specifies the zero-based index of the sort condition that corresponds to the specified field. |
#Remarks
To obtain the sort condition by the corresponding field, use the PivotGridFieldSortConditionCollection.Item property.
See Also