Skip to main content

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