Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FilterEditorControl.QueryConditionOperations Event

Allows you to prohibit users from removing conditions.

Namespace: DevExpress.Xpf.Core.FilteringUI

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public event EventHandler<QueryConditionOperationsEventArgs> QueryConditionOperations

#Event Data

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

Property Description
AllowRemoveCondition Gets or sets whether to allow users to remove conditions.
FieldName Gets a name of the field.
Filter Gets the current filter criteria specified in the FilterEditorControl.

#Remarks

Run Demo: Filter Editor - Prohibit Condition Operations

Use the QueryConditionOperations event to prohibit users from removing conditions:

<dxg:TableView x:Name="view">
    <dxg:TableView.FilterEditorTemplate>
        <DataTemplate>
            <dxfui:FilterEditorControl QueryConditionOperations="OnQueryConditionOperations" />
        </DataTemplate>
    </dxg:TableView.FilterEditorTemplate>
</dxg:TableView> 
void OnQueryConditionOperations(object sender, QueryConditionOperationsEventArgs e) {
    e.AllowRemoveCondition = false;
} 
See Also