Skip to main content
A newer version of this page is available. .

FilterEditorControl.QueryGroupTypes Event

Allows you to prohibit group types.

Namespace: DevExpress.Xpf.Core.FilteringUI

Assembly: DevExpress.Xpf.Grid.v19.2.dll

Declaration

public event EventHandler<QueryGroupTypesEventArgs> QueryGroupTypes

Event Data

The QueryGroupTypes event's data class is QueryGroupTypesEventArgs. The following properties provide information specific to this event:

Property Description
AllowAnd Gets or sets whether to allow users to specify the And logical operator in the FilterEditorControl.
AllowNotAnd Gets or sets whether to allow users to specify the NotAnd logical operator in the FilterEditorControl.
AllowNotOr Gets or sets whether to allow users to specify the NotOr logical operator in the FilterEditorControl.
AllowOr Gets or sets whether to allow users to specify the Or logical operator in the FilterEditorControl.
Filter Gets the current filter criteria specified in the FilterEditorControl.

Remarks

Tip

Demo: Filter Editor - Prohibit Group Types

Requires installation of WPF Subscription. Download

Use QueryGroupTypes event to prohibit group types. The following code sample prohibits users from specifying the Or and NotOr logical operators:

<dxg:TableView x:Name="view">
    <dxg:TableView.FilterEditorTemplate>
        <DataTemplate>
            <dxfui:FilterEditorControl QueryGroupTypes="OnQueryGroupTypes" />
        </DataTemplate>
    </dxg:TableView.FilterEditorTemplate>
</dxg:TableView> 
void OnQueryGroupTypes(object sender, QueryGroupTypesEventArgs e) {
    e.AllowNotAnd = false;
    e.AllowNotOr = false;
} 
See Also