Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 4.2 KB

File metadata and controls

45 lines (32 loc) · 4.2 KB

Pivot Grid for WPF - How to Create a Custom Filter Drop-Down

This example demonstrates how to create the Excel-style filter drop-down, adjust its settings and modify operators available in the Filter Rules tab. If the PivotGridControl.FieldFilterPopupMode property is set to Excel, all fields have Excel-style filter drop-downs. However, to customize the filter drop-down, you have to use the following approach:

screenshot

The project requires references to the Devexpress.DataAccess, DevExpress.Xpf.Core.Extensions, DevExpress.Xpf.Grid, DevExpress.Xpf.Grid.Core, Devexpress.Xpf.Grid.Extensions assemblies in addition to references created automatically when the PivotGrid control is dropped from VS Designer Toolbox.

Files to Review

API

You can use any available filter element in the data template. For the ExcelStyleFilterElement, you can create custom operators or even specify a data editor in an operand template for an operator.

Documentation