PivotGridFieldFilterValues.SetFilterType(PivotFilterType) Method

Sets the filter type to the specified value.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.2.Core.dll


public void SetFilterType(
    PivotFilterType newFilterType
Public Sub SetFilterType(
    newFilterType As PivotFilterType


Name Type Description
newFilterType PivotFilterType

A PivotFilterType enumeration member that specifies the filter type. This value is assigned to the PivotGridFieldFilterValues.FilterType property.


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