PivotSummaryFilter.Mode Property

Gets or sets whether summary filtering should be applied to the last aggregation level or to the specified one.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.1.Core.dll

Declaration

[DefaultValue(PivotSummaryFilterMode.LastLevel)]
public PivotSummaryFilterMode Mode { get; set; }
<DefaultValue(PivotSummaryFilterMode.LastLevel)>
Public Property Mode As PivotSummaryFilterMode

Property Value

Type Default Description
PivotSummaryFilterMode

LastLevel

A PivotSummaryFilterMode enumeration member that specifies whether summary filtering should be applied to the last aggregation level or to the specified one.

Remarks

Summary filtering cannot be simultaneously enabled for Totals, Grand Totals and data cells calculated against the same data field. It can only be applied to cells that belong to the same aggregation level.

By default, the Mode property is set to PivotSummaryFilterMode.LastLevel and summary filtering is applied to cells that belong to the lowest aggregation level (a level identified by the innermost column and row fields).

You can use the PivotSummaryFilter.ColumnField and PivotSummaryFilter.RowField properties to specify other levels, except for the (Grand Total, Grand Total) level that consists of only one cell. To enable filtering at a specified level, set the Mode property to PivotSummaryFilterMode.SpecificLevel.

As an alternative to specifying summary filter settings using properties exposed by the PivotSummaryFilter object, you can call an appropriate overload of the PivotSummaryFilter.Apply method and pass these settings as parameters.

Implements

DevExpress.XtraPivotGrid.ISummaryFilter.Mode
See Also