RowProperties.FilterMode Property
Gets or sets whether display or edit values of this row used to filter the control’s data.
Namespace: DevExpress.XtraVerticalGrid.Rows
Assembly: DevExpress.XtraVerticalGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
Declaration
[DefaultValue(ColumnFilterMode.Value)]
[XtraSerializableProperty]
public ColumnFilterMode FilterMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ColumnFilterMode | Value | A ColumnFilterMode enumeration value that specifies whether display or edit values of this row are used to filter the control’s data. |
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
By default, values form 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.Format). In this case, you may also need to filter the control’s data using the text displayed in cells, rather than the values from the data source. For this purpose, 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).