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.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
#Declaration
[DefaultValue(ColumnFilterMode.Value)]
[XtraSerializableProperty]
public ColumnFilterMode FilterMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Column |
Value | A Column |
Available values:
Name | Description |
---|---|
Value | A column’s data is filtered by the edit values. |
Display |
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).