ASPxGridSearchPanelSettings.GroupOperator Property
Specifies the logical operator used to combine conditions (multiple words separated by space characters).
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.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). |
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 |
---|---|
Example
Web Forms (in markup):
<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:
Web Forms: Search Panel
MVC: Search Panel
CardView:
VerticalGrid:
TreeList:
Online Demos
GridView:
Web Forms: ASPxGridView - Search Panel
CardView:
Web Forms: ASPxCardView - Search Panel
Vertical Grid:
Web Forms: ASPxVerticalGrid - Search Panel
Tree List:
Web Forms: ASPxTreeList - Search Panel