.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

XPView.GroupCriteria Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
[DefaultValue(null)]
public CriteriaOperator GroupCriteria { get; set; }
<TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
<DefaultValue(Nothing)>
Public Property GroupCriteria As CriteriaOperator

Property Value

Type Description
CriteriaOperator

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.


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:

XPView_GroupCriteria2

The result is shown in the image below:

XPView_GroupCriteria1

See Also