.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPBaseCollection.CriteriaString Property

Gets or sets the criteria used to filter objects on the data store side.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll


public string CriteriaString { get; set; }

Property Value

Type Description

A String value that specifies the criteria to filter objects on the data store side.


When the CriteriaString property is set to a new value, a new CriteriaOperator which is equivalent to the assigned string is created and assigned to the XPBaseCollection.Criteria property.

//xpCollection1.Criteria=CriteriaOperator.Parse("[Category]= ? AND [Price] <?","Saloon",100000);
xpCollection1.CriteriaString = "[Category] = 'Saloon' AND [Price] < 100000";

For more information, see XPBaseCollection.Criteria.

See Also