PivotFilter.Criteria Property
Gets or sets a filter criteria applied to data displayed in the PivotGridControl.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
Declaration
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public override CriteriaOperator Criteria { get; set; }
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 Overview.
Example
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" }));
See Also