How to hide the Grand Total present in the PivotGrid?

23 Oct 20191 minute to read

It can be achieved by setting the property ShowGrandTotals to false. By default, PivotGrid displays Grand Total for both column and row headers.
It can be mentioned either in XAML or in Code-Behind.

If through XAML, please refer the below code sample.

  • XAML
  • <Grid>
           <syncfusion:PivotGridControl x:Name="pivotGrid" ShowGrandTotals="False">

    Else if through Code-Behind, please refer the below code sample.

  • C#
  • public MainWindow()
                this.pivotGrid.ShowGrandTotals = false;