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

Get values from summary row

Thread ID:

Created:

Updated:

Platform:

Replies:

62108 Jun 7,2007 06:42 PM UTC Jun 8,2007 01:58 PM UTC WinForms 3
loading
Tags: GridControl
m.n.m,n.mn
Asked On June 7, 2007 06:42 PM UTC

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 11:21 PM UTC

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 06:46 AM UTC



>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 01:58 PM UTC

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.

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

;