Grid Summary Value

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


1 Reply

BM Bharath M Syncfusion Team October 1, 2010 11:59 AM UTC

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




Loader.
Up arrow icon