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

QueryConditionOperationsEventArgs.AllowRemoveCondition Property

Gets or sets whether to allow users to remove conditions.

Namespace: DevExpress.Xpf.Core.FilteringUI

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

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