PivotGridFieldFilterValues.InvertFilterType() Method
In This Article
Inverts the current filter type.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v14.2.Core.dll
#Declaration
#Remarks
The InvertFilterType method does the following:
- If the PivotGridFieldFilterValues.FilterType property is set to Included, the InvertFilterType method sets it to Excluded, and vice versa.
- 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.SetFilterType method to specify 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