Skip to main content

PivotGridFieldOptions.ShowTotals Property

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

Namespace: DevExpress.XtraPivotGrid

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

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Dashboard.Design


public bool ShowTotals { get; set; }

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:

Object Type Path to ShowTotals
.Options .ShowTotals


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);
fieldCategory.Options.ShowTotals = false;


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

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowTotals property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also