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

How to calculate the summary value based on other column summary value?

Platform: WinForms |
Control: SfDataGrid |
Published Date: May 31, 2018 |
Last Revised Date: May 31, 2018
Tags: summary

By default, the summary value is calculated based on the corresponding summary column in the SfDataGrid.  The value of a summary column can be calculated based on other summary column values by changing the display text in the SfDataGrid.DrawCell event with required value. The original summary value of a summary column can be retrieved by using the GetSummaryDisplayText method in SummaryCreator.  

 

The following code example shows how to change the summary column value when ShowInSummaryRow is false.

C#

 

VB

 

Sample links:

CS : Summary_CS

VB : Summary_VB

 

The following code example shows how to change the summary column value when ShowInSummaryRow is true.

C#

 

VB

 

 

Sample links:

CS : Summary_CS

VB : Summary_VB

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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