PivotGridFieldFilterValues.SetFilterType(PivotFilterType) Method
In This Article
Sets the filter type to the specified value.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v14.2.Core.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
filter |
Pivot |
A DevExpress. |
#Remarks
The SetFilterType method does the following:
- Assigns the filterType parameter value to the PivotGridFieldFilterValues.FilterType property.
- If the filterType value differs from the previously set filter type, the SetFilterType method inverts the PivotGridFieldFilterValues.Values collection (i.e., clears and populates it with field values that were not contained in it previously). This preserves the actual filter condition.
You can also use the PivotGridFieldFilterValues.InvertFilterType method to invert the filter type.
To set the filter type without changing the PivotGridFieldFilterValues.Values collection, use the PivotGridFieldFilterValues.FilterType property. Note that this will invert the filter condition.
See Also