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.
Unfortunately, activation email could not send to your email. Please try again.

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

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

Article ID: Published Date: Last Revised Date: Platform: Control:
8810 05/31/2018 05/31/2018 Windows Forms SfDataGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.