Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPBaseCollection.CriteriaString Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[Browsable(false)]
[DefaultValue(null)]
public string CriteriaString { get; set; }

Property Value

Type Default Description
String *null*

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

Remarks

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