XpoDataSource.CriteriaParameters Property
Provides access to the collection of parameter values that are used to build the data source control’s filter criteria.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
[DefaultValue(null)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public ParameterCollection CriteriaParameters { get; }
#Property Value
Type | Default | Description |
---|---|---|
Parameter |
null | A Parameter |
#Remarks
This property is in effect only if the criteria specified via the XpoDataSource.Criteria property contains question marks indicating parameter placeholders.
The following code snippet demonstrates how to specify parameter values via the CriteriaParameters property.
XpoDataSource1.CriteriaParameters.Add("Category", "Saloon");
XpoDataSource1.CriteriaParameters.Add("Price", "100000");
The following criteria refers to these parameter values. The first question mark is a placeholder for Category and the second - for Price.
Note
Changing Criteria