Back to Devexpress

DxPivotTable.ShowRowGrandTotals Property

blazor-devexpress-dot-blazor-dot-pivottable-dot-dxpivottable-e6541afa.md

latest2.5 KB
Original Source

DxPivotTable.ShowRowGrandTotals Property

Specifies whether to display row grand totals.

Namespace : DevExpress.Blazor.PivotTable

Assembly : DevExpress.Blazor.PivotTable.v25.2.dll

NuGet Package : DevExpress.Blazor.PivotTable

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ShowRowGrandTotals { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to show totals; false to hide totals.

|

Remarks

The DevExpress Blazor Pivot Table calculates totals for its data and displays them as separate columns and rows. There are four types of totals:

  • Row/column totals display sub-totals calculated for field values that include nested values ( Regions and Years in the example below).
  • Row/column grand totals display overall totals calculated against all rows/columns.

Run Demo: Totals

Run Demo: Totals

You can use the following properties to change totals’ visibility:

The following code hides row and column grand totals:

razor
<DxPivotTable Data="SalesData"
              ShowColumnGrandTotals="false"
              ShowRowGrandTotals="false">
    <Fields>
        @*...*@
    </Fields>
</DxPivotTable>

You can also use the following properties to set the position of row/column totals relative to rows/columns:

Implements

ShowRowGrandTotals

See Also

DxPivotTable Class

DxPivotTable Members

DevExpress.Blazor.PivotTable Namespace