A logical expression which groups two or more operands with a logical AND or OR.
NuGet Package: DevExpress.Data
public sealed class GroupOperator : CriteriaOperator
Public NotInheritable Class GroupOperator Inherits CriteriaOperator
Related API Members
The following members return GroupOperator objects:
You can find examples in the following article: Build Criteria - Cheat Sheet.
This example retrieves the cars that belong in the Saloon category and which cost less than $100,000.
The result is shown in the image below:
xpView1.GroupCriteria = GroupOperator.And(new BinaryOperator("Category", "Saloon"), new BinaryOperator("Price", 100000, BinaryOperatorType.Less));
Return orders that have Price equal to 20 or OrderName equal to ‘Order3’.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupOperator class.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.