The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

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.v19.1.dll


public ParameterCollection CriteriaParameters { get; }
Public ReadOnly Property CriteriaParameters As ParameterCollection

Property Value

Type Default Description


A ParameterCollection object that stores the filter criteria's parameter values.


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.

XpoDataSource1.Criteria = "[Category] = ? AND [Price] < ?";

Changing CriteriaParameters contents immediately refreshes the data source control.

See Also