#MainWindow.xaml
<syncfusion:PivotGridControl x:Name="pivotGrid1" Margin="5" ItemSource="{Binding ProductSalesData}" ShowGrandTotals="True" ShowSubTotals="False"
> <syncfusion:PivotGridControl.PivotRows> <syncfusion:PivotItem FieldMappingName="Country" FieldHeader="Country" TotalHeader="Total"/> <syncfusion:PivotItem FieldMappingName="Food" FieldHeader="Food" TotalHeader="Total"/> </syncfusion:PivotGridControl.PivotRows> <syncfusion:PivotGridControl.PivotCalculations> <syncfusion:PivotComputationInfo CalculationName = "Total" FieldName = "Amount" SummaryType="DoubleTotalSum" CalculationType="NoCalculation"/> </syncfusion:PivotGridControl.PivotCalculations> </syncfusion:PivotGridControl> |