wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-c835fe62.md
Gets or sets predefined filters.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public PredefinedFilterCollection PredefinedFilters { get; set; }
Public Property PredefinedFilters As PredefinedFilterCollection
| Type | Description |
|---|---|
| PredefinedFilterCollection |
A collection of predefined filters.
|
Tip
Topic : 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">
<dxg:GridColumn.PredefinedFilters>
<dxfui:PredefinedFilterCollection>
<dxfui:PredefinedFilter Filter="?p >= 25" Name="More than 25" />
<dxfui:PredefinedFilter Filter="?p >= 15 AND ?p < 25" Name="From 15 to 25" />
<dxfui:PredefinedFilter Filter="?p < 15" Name="Less than 15" />
</dxfui:PredefinedFilterCollection>
</dxg:GridColumn.PredefinedFilters>
</dxg:GridColumn>
</dxg:GridControl>
You can show predefined filters in the PredefinedFiltersElement:
You can select predefined filters in the new Filter Editor:
You can select predefined filters in the Excel-style Drop-down Filter:
See Also