PivotFilter Class

A filter applied to data displayed in the PivotGridControl.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v20.1.dll

Declaration

public class PivotFilter :
    PivotFilterBase,
    IFilterFormOwner,
    IUIFilterSource,
    IXtraSerializable
Public Class PivotFilter
    Inherits PivotFilterBase
    Implements IFilterFormOwner,
               IUIFilterSource,
               IXtraSerializable

Returned By

The PivotGridControl.ActiveFilter property returns an instance of PivotFilter.

Remarks

Use the PivotGridControl.ActiveFilter property to access filter settings of the PivotGridControl.

To learn more about filtering, see Filtering Overview.

Examples

The example below shows how to apply complex filter criteria in code using the PivotFilter.Criteria property. This property is exposed by the PivotFilter object that can be accessed using PivotGridControl.ActiveFilter.

using DevExpress.Data.Filtering;
// ...
            pivotGridControl.ActiveFilter.Criteria = new GroupOperator(GroupOperatorType.And,
                new InOperator(fieldTrademark.PrefilterColumnName, new string[] { "Chevrolet", "Chrysler", "Dodge", "Ford" }),
                new InOperator(fieldBodyStyle.PrefilterColumnName, new string[] { "Coupe" }));

Inheritance

Object
DevExpress.Utils.Controls.DisposableObject
See Also