wpf-400734-controls-and-libraries-pivot-grid-data-shaping-filtering-filter-elements.md
Filter Elements are separate controls within your application that can filter data in a bound PivotGridControl.
Tip
For an example, review our Demo Center application : Excel Style Filtering
Requires the installation of a WPF Subscription. Download
For element type information, review the Filter Element Types document section.
The following code uses the CheckedListFilterElement to filter the PivotGridControl’s data by the fieldProductName values:
<dxfui:CheckedListFilterElement
dxfui:FilterElement.Context="{Binding FilteringContext, ElementName=pivotGridControl1}"
FieldName="fieldProductName" />
The image below shows the result:
The following code snippet uses the CalendarFilterElement to filter the Order Date field values:
<dxpg:PivotGridField
Area="FilterArea"
Caption="OrderDate"
FieldName="OrderDate"
GroupInterval="Date"
Name="fieldOrderDate">
<dxpg:PivotGridField.CustomExcelStyleFilterPopupTemplate>
<DataTemplate>
<dxfui:CalendarFilterElement Name="PART_FilterElement" />
</DataTemplate>
</dxpg:PivotGridField.CustomExcelStyleFilterPopupTemplate>
</dxpg:PivotGridField>
The image below shows the result:
Note
The complete sample project How to Create a Custom Filter Drop-Down is available in the DevExpress Examples repository.