Skip to main content

DataViewBase.FilterEditorShowOperandTypeIcon Property

Gets or sets whether the operand’s value can be swapped. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core


public bool FilterEditorShowOperandTypeIcon { get; set; }

Property Value

Type Description

true to allow end-users to swap the operand’s value; otherwise, false.


Legacy Filter Editor

The FilterEditorShowOperandTypeIcon property works only in the legacy Filter Editor.

If the FilterEditorShowOperandTypeIcon property is set to true, end users can compare the values of one filter column with the values of another column. For date-time fields, predefined date constants are available to create a filter. To activate this filter mode, an end user should click the operand type icon or press CTRL + Q, and click the second value box to display the set of available options.



New Filter Editor

To enable a functionality similar to the FilterEditorShowOperandTypeIcon property in the new Filter Editor, handle the FilterEditorControl.QueryOperands event and set the QueryOperandsEventArgs.AllowValueOperand property to true:

        <dxg:GridColumn FieldName="ProductName"/>
        <dxg:GridColumn FieldName="RequiredDate"/>
        <dxg:GridColumn FieldName="ShippedDate"/>
        <dxg:GridColumn FieldName="ShipCountry"/>
        <dxg:GridColumn FieldName="ShipCity"/>
        <dxg:GridColumn FieldName="ShipAddress"/>
        <dxg:TableView x:Name="view">
                    <dxfui:FilterEditorControl QueryOperands="FilterEditorControl_OnQueryOperands" />
void FilterEditorControl_OnQueryOperands(object sender, QueryOperandsEventArgs e) {
    switch(e.FieldName) {
        case "RequiredDate":
        case "ShippedDate":
            e.AllowPropertyOperand = true;
            e.AllowDateTimeFunctionOperand = true;
            e.AllowValueOperand = true;

Run Demo: Filter Editor - Customize Operand Values

See Also