PivotGridFieldOptions.ShowTotals Property

Gets or sets whether Totals that correspond to the current data field are visible.

Namespace: DevExpress.XtraPivotGrid

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

Declaration

[DefaultValue(true)]
public bool ShowTotals { get; set; }
<DefaultValue(True)>
Public Property ShowTotals As Boolean

Property Value

Type Default Description
Boolean

true

true if corresponding automatic totals are visible; otherwise, false.

Property Paths

You can access this nested property as listed below:

Show 11 property paths
Library Object Type Path to ShowTotals
Cross-Platform Class Library PivotGridFieldBase
.Options.ShowTotals
WinForms Controls PivotGridField
.Options.ShowTotals
PivotGridField
.Options.ShowTotals
ASP.NET Controls and MVC Extensions PivotGridField
.Options.ShowTotals
PivotGridField
.Options.ShowTotals
MVCxPivotGridField
.Options.ShowTotals
MVCxPivotGridField
.Options.ShowTotals
Reporting XRPivotGridField
.Options.ShowTotals
XRPivotGridField
.Options.ShowTotals
XRPivotGridField
.Options.ShowTotals
XRPivotGridField
.Options.ShowTotals

Remarks

Use the PivotGridOptionsViewBase.ShowColumnTotals, PivotGridOptionsViewBase.ShowRowTotals and PivotGridOptionsViewBase.ShowTotalsForSingleValues properties to control the visibility of automatic totals for all PivotGridControl's fields.

The following code snippet shows how to disable totals for the CategoryName field.


using DevExpress.XtraPivotGrid;
// ...
PivotGridField fieldCategory = new PivotGridField("CategoryName", PivotArea.RowArea);
pivotGridControl.Fields.Add(fieldCategory);
fieldCategory.Options.ShowTotals = false;
NOTE

The row fields' ShowTotals properties are ignored when the PivotGridOptionsViewBase.RowTotalsLocation property is set to PivotRowTotalsLocation.Tree.

See Also