Skip to main content

TreeListColumn.FilterMode Property

Gets or sets whether to filter data by the displayed text or actual values.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

[DefaultValue(ColumnFilterMode.Value)]
[XtraSerializableProperty]
[XtraSerializablePropertyId(2)]
public ColumnFilterMode FilterMode { get; set; }

Property Value

Type Default Description
ColumnFilterMode Value

A ColumnFilterMode enumeration value that specifies how the column’s values are filtered.

Available values:

Name Description
Value

A column’s data is filtered by the edit values.

DisplayText

A column’s data is filtered by the display text.

Remarks

Users can filter data using the Pop-up Filter Menus or Automatic Filtering Row. The FilterMode property specifies how to filter data:

  • Value – the pop-up filter menu contains unique actual values. When a user applies a filter using the auto-filter row, the query should be entered without formatting characters.
  • DisplayText – the pop-up menu contains unique displayed texts. When a user applies a filter using the auto-filter row, the query should match the displayed text completely (if necessary, contain formatting characters).

*

To filter non-string column values with string operators (“Contains”, “Starts With”, and others), set FilterMode to DisplayText. This approach is also applicable to other Devexpress data-aware controls (Gantt Control, Data Grid, Vertical Grid, etc.).

See Also