PivotGridFieldSortConditionCollection.Contains(PivotGridFieldBase) Method
In This Article
Returns whether the collection contains a 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 bool Contains(
PivotGridFieldBase field
)
#Parameters
Name | Type | Description |
---|---|---|
field | Pivot |
A Pivot |
#Returns
Type | Description |
---|---|
Boolean | true if the collection contains a sort condition that corresponds to the specified field; otherwise, false. |
#Remarks
To obtain a sort condition or its index by the corresponding field, use the PivotGridFieldSortConditionCollection.Item property and PivotGridFieldSortConditionCollection.IndexOf method, respectively.
See Also