BetweenOperator Class

An operator which determines whether a criteria expression lies between the specified range of values.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v20.1.dll

Declaration

public sealed class BetweenOperator :
    CriteriaOperator
Public NotInheritable Class BetweenOperator
    Inherits CriteriaOperator

Related API Members

The following members accept/return BetweenOperator objects:

Remarks

The BetweenOperator can be used to build criteria expressions when filtering objects. To learn more, see Creating Criteria and Criteria Operators.

To create a between operator, create a new instance of the BetweenOperator class. The constructor's parameters allow the lower and upper values in the range to be specified.

NOTE

The upper and lower values in the range are included in the range.

Examples

This sample code selects customers who are older than 20 years and younger than 30.

The image below shows the result:

BetweenOperatorSample

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

// ...

CriteriaOperator filter = new BetweenOperator("Age", 20, 30);
xpCustomers.Filter = filter;

Inheritance

Object
CriteriaOperator
BetweenOperator
See Also