Skip to main content
.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.v24.1.dll

NuGet Package: DevExpress.Xpo

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