PivotGridControl.ActiveFilterCriteria Property
In This Article
Gets or sets the filter criteria applied to the PivotGridControl‘s data.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
NuGet Package: DevExpress.Win.PivotGrid
#Declaration
[Browsable(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public CriteriaOperator ActiveFilterCriteria { get; set; }
#Property Value
Type | Description |
---|---|
Criteria |
A Criteria |
#Remarks
To learn more about filtering, see Filtering.
#Example
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.Name, new string[] { "Chevrolet", "Chrysler", "Dodge", "Ford" }),
new InOperator(fieldBodyStyle.Name, new string[] { "Coupe" }));
See Also