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.

Get values from summary row

Thread ID:

Created:

Updated:

Platform:

Replies:

62108 Jun 7,2007 02:42 PM Jun 8,2007 09:58 AM Windows Forms 3
loading
Tags: GridControl
m.n.m,n.mn
Asked On June 7, 2007 02:42 PM

Hi Hanneef, i need some help with summary rows, i need to get the values from one summary row, to be able to use them in another summary row, please refer to the example i attached....

to simplify ..:)

[URL=http://imageshack.us][IMG]http://img521.imageshack.us/img521/3182/sumrowdiffaa2.jpg[/IMG][/URL]

thanx!

GGCSummaryCellText.zip

Rajagopal [Syncfusion]
Replied On June 7, 2007 07:21 PM

Hi Mario,

Please try the code below to get the values from a summary row.

foreach (Element el in gridGroupingControl1.Table.DisplayElements)
{
if (el is GridSummaryRow)
{
GridSummaryRow sr = el as GridSummaryRow;
if (sr != null)
{
foreach (GridSummaryColumnDescriptor scd in sr.SummaryRowDescriptor.SummaryColumns)
{
Console.WriteLine("{0} = {1}", scd.Name, GridEngine.GetSummaryText(sr.ParentGroup, scd));
}
}
}
}

Let me know if this helps.
Regards,
Rajagopal

Mario Mojaš
Replied On June 8, 2007 02:46 AM



>Hi Mario,

Please try the code below to get the values from a summary row.

foreach (Element el in gridGroupingControl1.Table.DisplayElements)
{
if (el is GridSummaryRow)
{
GridSummaryRow sr = el as GridSummaryRow;
if (sr != null)
{
foreach (GridSummaryColumnDescriptor scd in sr.SummaryRowDescriptor.SummaryColumns)
{
Console.WriteLine("{0} = {1}", scd.Name, GridEngine.GetSummaryText(sr.ParentGroup, scd));
}
}
}
}

Let me know if this helps.
Regards,
Rajagopal


hmmm... i'm still lost :), could you please expand my example with the snippet, so i can actually understand and see how it works.. Thanx!

Administrator [Syncfusion]
Replied On June 8, 2007 09:58 AM

Here is your sample back using QueryCellStyleInfo to combine the 2 summaries values into a summary in a different row.


GGCSummaryCellText0.zip

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.

;