Skip to main content

ColumnBase.PredefinedFilters Property

Gets or sets predefined filters.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public PredefinedFilterCollection PredefinedFilters { get; set; }

Property Value

Type Description

A collection of predefined filters.


Starting from v18.2, the GridControl supports predefined filters.

The following code sample shows how to specify predefined filters:

<dxg:GridControl Name="grid">
  <!-- -->              
  <dxg:GridColumn FieldName="MPGCity">
              <dxfui:PredefinedFilter Filter="?p >= 25" Name="More than 25" />
              <dxfui:PredefinedFilter Filter="?p >= 15 AND ?p &lt; 25" Name="From 15 to 25" />
              <dxfui:PredefinedFilter Filter="?p &lt; 15" Name="Less than 15" />

Predefined Filters Element

You can show predefined filters in the PredefinedFiltersElement:

Filter Editor

You can select predefined filters in the new Filter Editor:

Excel-style Drop-down Filter

You can select predefined filters in the Excel-style Drop-down Filter:

See Also