PivotGridControl.ActiveFilterCriteria Property

Gets or sets the filter criteria applied to the PivotGridControl's data.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v20.1.dll

Declaration

[Browsable(false)]
[PivotAPIMemberCategory(APICategory.RelationalSource)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public CriteriaOperator ActiveFilterCriteria { get; set; }
<PivotAPIMemberCategory(APICategory.RelationalSource)>
<Browsable(False)>
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
Public Property ActiveFilterCriteria As CriteriaOperator

Property Value

Type Description
CriteriaOperator

A CriteriaOperator descendant that specifies a filter criteria applied to data displayed in the PivotGridControl.

Remarks

To learn more about filtering, see Filtering.

Examples

The example below shows how to apply complex filter criteria in code using the PivotGridControl.ActiveFilterCriteria property.

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