XPView.GroupCriteria Property
In This Article
Gets or sets the grouping criteria which is associated with the view.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
#Declaration
[DefaultValue(null)]
public CriteriaOperator GroupCriteria { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Criteria |
null | A Criteria |
#Remarks
This example retrieves the cars that are in the Saloon category and cost less than $100,000.
xpView1.GroupCriteria = GroupOperator.And(new BinaryOperator("Category", "Saloon"),
new BinaryOperator("Price", 100000, BinaryOperatorType.Less));
This criteria can also be specified at design time by assigning the “[Category] = ‘Saloon’ And [Price] < 100000” string to the GroupCriteria property:
The result is shown in the image below:
See Also