Skip to main content

QueryConditionOperationsEventArgs.AllowRemoveCondition Property

Gets or sets whether to allow users to remove conditions.

Namespace: DevExpress.Xpf.Core.FilteringUI

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public bool AllowRemoveCondition { get; set; }

Property Value

Type Description
Boolean

true, to allow users to remove conditions; otherwise, false.

Remarks

Set the AllowRemoveCondition property to false 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