Back to Devexpress

PivotGridOptionsViewBase.ShowRowTotals Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsviewbase-1005cbbe.md

latest3.9 KB
Original Source

PivotGridOptionsViewBase.ShowRowTotals Property

Gets or sets whether to display row automatic 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 ShowRowTotals { get; set; }
vb
<DefaultValue(True)>
Public Property ShowRowTotals As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to display row automatic Totals; otherwise, false.

|

Remarks

You can prevent automatic totals from being displayed for specific column and row fields. Set a field’s PivotGridFieldBase.TotalsVisibility property to PivotTotalsVisibility.CustomTotals to display custom totals instead of automatic totals. Set the PivotGridFieldBase.TotalsVisibility property to PivotTotalsVisibility.None to hide the totals.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowRowTotals 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-custom-aggregates/CS/Win_Pivot_CustomAggregates/Form1.cs#L12

csharp
pivotGridControl1.OptionsView.ShowColumnTotals = false;
pivotGridControl1.OptionsView.ShowRowTotals = false;
pivotGridControl1.OptionsView.ShowRowGrandTotals = false;

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

vb
pivotGridControl1.OptionsView.ShowColumnTotals = False
pivotGridControl1.OptionsView.ShowRowTotals = False
pivotGridControl1.OptionsView.ShowRowGrandTotals = False

See Also

ShowColumnTotals

ShowTotals

Totals

PivotGridOptionsViewBase Class

PivotGridOptionsViewBase Members

DevExpress.XtraPivotGrid Namespace