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 Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
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