Skip to main content

DxDataGridComboBoxColumn<T>.FilteringMode Property

Specifies how combobox column data is filtered.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

Declaration

[DefaultValue(DataGridFilteringMode.None)]
[Parameter]
public DataGridFilteringMode FilteringMode { get; set; }

Property Value

Type Default Description
DataGridFilteringMode None

A DataGridFilteringMode enumeration value.

Available values:

Name Description
None

The filter is not applied to list items.

StartsWith

Filters the component for list items that begin with the search string.

Contains

Filters the component for list items that contain the search string. Search string matches are highlighted.

Remarks

Important

The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.

To enable users to type text into a combobox column cell editor and filter its items on-the-fly, set the FilteringMode property to one of the following values:

  • StartsWith - Filters the editor for items that begin with a search string. The filter is case-insensitive.
  • Contains - Filters the editor for items that contain a search string. The filter is case-insensitive. Search string matches are highlighted.

Note

If you change the column’s default filter mode, make sure the column’s data can be filtered (AllowFilter is set to NULL or true).

The code below applies the Contains criteria operator to the Data Grid’s Cloud Cover combobox column.

<DxDataGrid DataAsync="@ForecastService.GetForecastAsync"
            ShowFilterRow="true">

    <DxDataGridComboBoxColumn Field="@nameof(WeatherForecast.CloudCover)" 
                              Caption="Cloud Cover" 
                              FilteringMode="DataGridFilteringMode.Contains"/>

</DxDataGrid>

Data Grid combobox column - Filter modes

See Also