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.

Grid Summary Value

Thread ID:

Created:

Updated:

Platform:

Replies:

96693 Sep 29,2010 05:02 AM Oct 1,2010 07:59 AM Windows Forms 1
loading
Tags: GridControl
Narasimha Pavan
Asked On September 29, 2010 05:02 AM

Hi,

I have a form in there are multiple grid grouping and client side paging grids. For these grids I have used grid summary row to show the summary value of each grid to user. Now I need these summary values to be used in different grid, but I am not able to get the summary value into a variable.
Can you please tell me how to get the summary value of the grid(Clientside and grid grouping) into a variable which can be used in another grid. Thanks in Advance

Regards,
Pavan


Bharath M [Syncfusion]
Replied On October 1, 2010 07:59 AM

Hi Pavan,

Thank you for your interest in Syncfusion products.

We can get the summary value of a GridGroupinControl, by using the function “Table.GetSummaries()”. And using this function we can get the summary value in a variable for all GridGroupingControl in pages. Please refer the below code snippet to get the value of summary type “Int32Aggregate”:

[CS]

int grid1SumValue = (this.GridGroupingControl1.Table.GetSummaries()[0] as Syncfusion.Grouping.Int32AggregateSummary).Sum;
int grid2SumValue = (this.GridGroupingControl2.Table.GetSummaries()[0] as Syncfusion.Grouping.Int32AggregateSummary).Sum;

// For DoubleAggregate summary type, please cast with “Syncfusion.Grouping.DoubleAggregateSummary” class.


Let me know if you have any concerns.

Regards,
Bharath M




CONFIRMATION

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.

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.

;