We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Calculations on Summary Columns in PivotGrid

Thread ID:





105951 Nov 29,2012 08:38 PM UTC Dec 4,2012 08:36 AM UTC WinForms 1
Tags: PivotGridControl
Arora Ruchika
Asked On November 29, 2012 08:38 PM UTC


I am trying to use Syncfusion PivotGrid control to achive Pivot functionality in Excel. I have 2 columns say Column1 and Column2 . I want to have a third column calculated as Sum(Column1) / Sum(Column2) *100.

I can calculate individual sums on column1 and column2 using SummaryType = DoubleTotalSum , but I am not getting how to perform calculations on Summary Columns.

Any help will be highly appreciated.

Thanks in advance!


Vinish Kumar K [Syncfusion]
Replied On December 4, 2012 08:36 AM UTC

Hi Ruchika,


Thanks for your interested in Syncfusion products.



Pivot Grid Calculation.

You can achieve this by adding PivotCalculations in pivot grid control. Please refer the following code.




this.pivotGridControl1.PivotCalculations.Add(new PivotComputationInfo { FieldName = "Amount", Format = "#,##0", SummaryType = SummaryType.DoubleTotalSum });




Let me know if you have further concerns.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon