PivotSummaryFilter.ColumnField Property

Gets or sets a column field used to identify an aggregation level to which the filtering is applied.

Namespace: DevExpress.XtraPivotGrid

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

Declaration

[DefaultValue(null)]
public PivotGridFieldBase ColumnField { get; set; }
<DefaultValue(Nothing)>
Public Property ColumnField As PivotGridFieldBase

Property Value

Type Default Description
PivotGridFieldBase

null

A PivotGridFieldBase descendant that specifies a column field used to identify an aggregation level to which the filtering is applied.

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, summary filtering is applied to cells that belong to the last level (a level identified by the last column and row fields). You can use the ColumnField and PivotSummaryFilter.RowField properties to specify other levels instead, except for the (Grand Total, Grand Total) level that consists of only one cell. To enable filtering at a specified level, you should also set the PivotSummaryFilter.Mode property to PivotSummaryFilterMode.SpecificLevel.

For more information about aggregation levels, see Aggregation Levels.

Assign the null (Nothing in Visual Basic) value to the ColumnField property to identify the Grand Total column.

Use the PivotSummaryFilter.RowField property to specify a row field that identifies the aggregation level.

If the PivotSummaryFilter.Mode property is set to PivotSummaryFilterMode.LastLevel, summary filtering is applied to cells that belong to the last level and the ColumnField and PivotSummaryFilter.RowField properties are not in effect.

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.

See Filtering by Summaries for more information.

See Also