Skip to main content
Row

PivotLayout.HideAllSubtotals() Method

Hides all subtotals in the PivotTable report.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void HideAllSubtotals()

Remarks

Use the HideAllSubtotals method to remove subtotals for all outer row and column fields in a PivotTable report.

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

// Access the pivot table by its name in the collection.
PivotTable pivotTable = worksheet.PivotTables["PivotTable1"];
// Show all subtotals at the bottom of each group.
pivotTable.Layout.ShowAllSubtotals(false);

To remove subtotals for a particular outer field, call the field’s PivotField.SetSubtotal method and pass the PivotSubtotalFunctions.None value to it.

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

Note

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