Skip to main content
.NET Framework 4.5.2+

PivotLayout.ShowRowGrandTotals Property

Gets or sets a value indicating whether grand totals should be displayed for rows in the PivotTable report.

Namespace: DevExpress.Spreadsheet

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


bool ShowRowGrandTotals { get; set; }

Property Value

Type Description

true, to display grand totals for rows; otherwise, false.


Use the ShowRowGrandTotals and PivotLayout.ShowColumnGrandTotals properties to display or hide grand totals for a PivotTable report. The PivotTable column displaying grand totals for rows is highlighted in the following image. The appearance of the grand total column is specified by the TableStyleElementType.LastColumn element of the style applied to the pivot table.


The following example demonstrates how to use the ShowRowGrandTotals property to hide grand totals for the PivotTable rows.

View Example

Worksheet worksheet = workbook.Worksheets["Report1"];
workbook.Worksheets.ActiveWorksheet = worksheet;

// Access the pivot table by its name in the collection.
PivotTable pivotTable = worksheet.PivotTables["PivotTable1"];
// Add the "Region" field to the column axis area. 

// Hide grand totals for rows.
pivotTable.Layout.ShowRowGrandTotals = false;

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowRowGrandTotals 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