Back to Devexpress

RowProperties.FilterMode Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-rowproperties-02cedf59.md

latest2.8 KB
Original Source

RowProperties.FilterMode Property

Gets or sets whether display or edit values of this row are used to filter the control’s data.

Namespace : DevExpress.XtraVerticalGrid.Rows

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
ColumnFilterModeValue

A ColumnFilterMode enumeration value that specifies whether display or edit values of this row are used to filter the control’s data.

|

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

By default, values from the underlying data source are used to filter the control’s data from the filter dropdown. However, cell values can be formatted using a custom format (see RowProperties.DisplayFormat). To filter the control’s data by display text rather than data source values, set the FilterMode property to DisplayText.

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, TreeList).

See Also

DisplayFormat

RowProperties Class

RowProperties Members

DevExpress.XtraVerticalGrid.Rows Namespace