Skip to main content
Tab

ASPxGridSearchPanelSettings.GroupOperator Property

Specifies the logical operator used to combine conditions (multiple words separated by space characters).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

[DefaultValue(GridViewSearchPanelGroupOperator.And)]
public GridViewSearchPanelGroupOperator GroupOperator { get; set; }

Property Value

Type Default Description
GridViewSearchPanelGroupOperator

And

One of the GridViewSearchPanelGroupOperator enumeration values.

Available values:

Name Description
And

The AND logical operator is used to combine conditions (multiple words separated by space characters).

Or

The OR logical operator is used to combine conditions (multiple words separated by space characters).

Property Paths

You can access this nested property as listed below:

Remarks

If the search string contains multiple words separated by space characters, the words are treated as individual conditions. Use the GroupOperator property to specify a logical operator used to combine the conditions.

GroupOperator = And GroupOperator = Or
EUD_Grid_SearchPanelCriterion3_v2 EUD_Grid_SearchPanelCriterion3

Example

Web Forms (declaratively):

<dx:ASPxGridView ID="Grid" runat="server" >
    ...
    <SettingsSearchPanel Visible="true" GroupOperator="And" />
</dx:ASPxGridView>

Web Forms (in code):

ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsSearchPanel.Visible = true;
grid1.SettingsSearchPanel.GroupOperator = DevExpress.Web.GridViewSearchPanelGroupOperator.And;

MVC:

@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";
    settings.SettingsSearchPanel.Visible = true;
    settings.SettingsSearchPanel.GroupOperator = DevExpress.Web.GridViewSearchPanelGroupOperator.And;
    ...
}).Bind(Model).GetHtml()

Concept

GridView:

CardView:

VerticalGrid:

TreeList:

Online Demos

GridView:

CardView:

Vertical Grid:

Tree List:

See Also