Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridControl.FilteringContext Property

Gets an object which the FilterEditorControl uses to interact with a PivotGridControl.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public FilteringUIContext FilteringContext { get; }

#Property Value

Type Description
FilteringUIContext

An object required for the FilterEditorControl or its descendants to edit the filter criteria of the data-bound control.

#Remarks

Use the Context property to bind the FilterEditorControl to the PivotGridControl’s filtering context. The FilterEditorControl uses this context to retrieve values, filter criteria, formatting settings and other details from the PivotGridControl. The FilterEditorControl modifies the context to apply filter criteria to the PivotGridControl.

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:

pivot-filter-elements-sample

Tip

For an example of use review our Demo Center application : Excel Style Filtering

Requires the installation of a WPF Subscription. Download

See Also