FilterEditorControl.QueryGroupOperations Event

Allows you to prohibit group operations.

Namespace: DevExpress.Xpf.Core.FilteringUI

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public event EventHandler<QueryGroupOperationsEventArgs> QueryGroupOperations
Public Event QueryGroupOperations As EventHandler(Of QueryGroupOperationsEventArgs)

Event Data

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

Property Description
AllowAddCondition Gets or sets whether to allow users to add conditions.
AllowAddCustomExpression Gets or sets whether to allow users to add custom expressions.
AllowAddGroup Gets or sets whether to allow users to add a group of conditions.
Filter Gets the current filter criteria specified in the FilterEditorControl.

Remarks

TIP

Demo: Filter Editor - Prohibit Group Operations

Requires installation of WPF Subscription. Download

Use the QueryGroupOperations event to prohibit group operations. The following code sample prohibits users from adding custom expressions:

<dxg:TableView x:Name="view">
    <dxg:TableView.FilterEditorTemplate>
        <DataTemplate>
            <dxfui:FilterEditorControl QueryGroupOperations="OnQueryGroupOperations" />
        </DataTemplate>
    </dxg:TableView.FilterEditorTemplate>
</dxg:TableView> 
void OnQueryGroupOperations(object sender, QueryGroupOperationsEventArgs e) {
    e.AllowAddCustomExpression = false;
} 
See Also