An operator which determines whether a criteria expression lies between the specified range of values.
public sealed class BetweenOperator : CriteriaOperator
Public NotInheritable Class BetweenOperator Inherits CriteriaOperator
Related API Members
The following members accept/return BetweenOperator objects:
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.
The upper and lower values in the range are included in the range.
This sample code selects customers who are older than 20 years and younger than 30.
The image below shows the result:
using DevExpress.Xpo; using DevExpress.Data.Filtering; // ... CriteriaOperator filter = new BetweenOperator("Age", 20, 30); xpCustomers.Filter = filter;