Back to Devexpress

TreeListColumn.FilterMode Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-89f33a90.md

latest3.2 KB
Original Source

TreeListColumn.FilterMode Property

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

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DefaultValue(ColumnFilterMode.Value)]
[XtraSerializableProperty]
[XtraSerializablePropertyId(2)]
public ColumnFilterMode FilterMode { get; set; }
vb
<DefaultValue(ColumnFilterMode.Value)>
<XtraSerializableProperty>
<XtraSerializablePropertyId(2)>
Public Property FilterMode As ColumnFilterMode

Property Value

TypeDefaultDescription
ColumnFilterModeValue

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

|

Available values:

NameDescription
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

Pop-up Filter Menus

Automatic Filtering Row

TreeListColumn Class

TreeListColumn Members

DevExpress.XtraTreeList.Columns Namespace