Back to Devexpress

XPView.GroupCriteria Property

xpo-devexpress-dot-xpo-dot-xpview-350699ec.md

latest1.7 KB
Original Source

XPView.GroupCriteria Property

Gets or sets the grouping criteria which is associated with the view.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
[DefaultValue(null)]
public CriteriaOperator GroupCriteria { get; set; }
vb
<DefaultValue(Nothing)>
Public Property GroupCriteria As CriteriaOperator

Property Value

TypeDefaultDescription
CriteriaOperatornull

A CriteriaOperator object that specifies the grouping criteria.

|

Remarks

This example retrieves the cars that are in the Saloon category and cost less than $100,000.

csharp
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

XPView Class

XPView Members

DevExpress.Xpo Namespace