Back to Devexpress

Filter Panel

wpf-400735-controls-and-libraries-pivot-grid-data-shaping-filtering-filter-panel.md

latest6.4 KB
Original Source

Filter Panel

  • Sep 19, 2025
  • 3 minutes to read

The Filter Panel is displayed at the bottom of the PivotGridControl. This panel shows an existing filter expression (active or inactive) with a set of buttons to enable/disable, edit, or clear the filter.

Run Demo: Excel Style Filtering

APIDescription
PivotGridControl.ShowFilterPanelModeSpecifies whether to display the filter panel within the PivotGridControl.
PivotGridControl.ShowFilterPanelReturns whether the filter panel is displayed within the PivotGridControl.

Note

The Filter Panel does not display summary filters.

Enable/Disable Filter

Use this check box to enable/disable the current filter at runtime.

APIDescription
PivotGridControl.IsFilterEnabledSpecifies whether to enable/disable the current filter.

Filter Expression

If you apply filter conditions to individual columns, the PivotGridControl uses logical AND to combine these conditions into a single filter expression.

The Filter Panel highlights individual field names, field values, and date-time functions to increase the filter expression’s readability.

APIDescription
PivotGridControl.FilterStringGets or sets the filter expression applied to PivotGridControl data.
PivotGridControl.FilterCriteriaGets or sets the filter criteria applied to PivotGridControl data.

Expand/Collapse Panel

Click the Expand Panel button to display the entire filter expression if it does not fit the Filter Panel.

Most Recently Used Filters

Click the button displayed in the image below to access the most recently applied filter expressions.

APIDescription
PivotGridControl.AllowMRUFilterListSpecifies whether to display the drop-down MRU filter list and the Most Resently Used button.
PivotGridControl.MRUFilterListCountSpecifies the maximum number of the most recently used filters the PivotGridControl stores.
PivotGridControl.MRUFilterListReturns a collection of the most recently used filters.
PivotGridControl.AddMRUFilterAdds the specified filter to the collection of the most recently used filters.
PivotGridControl.RemoveMRUFilterRemoves the specified filter from the collection of the most recently used filters.
PivotGridControl.ClearMRUFilterClears the collection of the most recently used filters.

Edit Filter

The button shown in the image above invokes the Filter Editor:

APIDescription
PivotGridControl.AllowFilterEditorSpecifies whether to allow users to invoke the Filter Editor from the header area’s context menu and Filter Panel.
PivotGridControl.ShowFilterEditor()Invokes the Filter Editor.

Clear Filter

The Clear Filter button at the end of the Filter Panel removes all the filter conditions.

Users can also remove individual conditions as shown in the image below:

APIDescription
PivotGridControl.ResetFilterCriteria()Clears the filter.

Legacy and New Filter Panels

New Filter Panel

Legacy Filter Panel

To use the legacy Filter Panel (Prefilter Panel):

Note

The PivotGridControl bound to an OLAP Data Source displays the legacy Filter Panel.