Back to Devexpress

PivotGridOptionsViewBase.ShowRowGrandTotals Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsviewbase-14787765.md

latest4.8 KB
Original Source

PivotGridOptionsViewBase.ShowRowGrandTotals Property

Gets or sets whether to display row Grand Totals.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true to display row Grand Totals; otherwise, false.

|

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

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.

winforms-pivot-grid-hide-specific-columns-and-rows/CS/Data.cs#L32

csharp
pivot.OptionsView.RowTotalsLocation = PivotRowTotalsLocation.Near;
pivot.OptionsView.ShowRowGrandTotals = false;
pivot.OptionsView.ColumnTotalsLocation = PivotTotalsLocation.Far;

winforms-pivot-grid-custom-aggregates/CS/Win_Pivot_CustomAggregates/Form1.cs#L13

csharp
pivotGridControl1.OptionsView.ShowRowTotals = false;
pivotGridControl1.OptionsView.ShowRowGrandTotals = false;
pivotGridControl1.OptionsData.DataProcessingEngine = PivotDataProcessingEngine.Optimized;

winforms-dashboard-pivot-custom-export/CS/WinformsExport/Form1.cs#L53

csharp
pivot6.CustomFieldValueCells += PivotCustomFieldValueCellsResults;
pivot6.OptionsView.ShowRowGrandTotals = false;
pivot6.AfterPrint += PivotAfterPrint;

winforms-pivot-grid-hide-specific-columns-and-rows/VB/Data.vb#L36

vb
pivot.OptionsView.RowTotalsLocation = PivotRowTotalsLocation.Near
pivot.OptionsView.ShowRowGrandTotals = False
pivot.OptionsView.ColumnTotalsLocation = PivotTotalsLocation.Far

winforms-pivot-grid-custom-aggregates/VB/Win_Pivot_CustomAggregates/Form1.vb#L14

vb
pivotGridControl1.OptionsView.ShowRowTotals = False
pivotGridControl1.OptionsView.ShowRowGrandTotals = False
pivotGridControl1.OptionsData.DataProcessingEngine = PivotDataProcessingEngine.Optimized

winforms-dashboard-pivot-custom-export/VB/WinFormsExport/Form1.vb#L55

vb
AddHandler pivot6.CustomFieldValueCells, AddressOf PivotCustomFieldValueCellsResults
pivot6.OptionsView.ShowRowGrandTotals = False
AddHandler pivot6.AfterPrint, AddressOf PivotAfterPrint

See Also

ShowColumnGrandTotals

ShowGrandTotalsForSingleValues

ShowGrandTotal

PivotGridOptionsViewBase Class

PivotGridOptionsViewBase Members

DevExpress.XtraPivotGrid Namespace