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.

Adding multiple Grid Summary Column Descriptors

Thread ID:

Created:

Updated:

Platform:

Replies:

62273 Jun 12,2007 06:14 AM Jun 13,2007 04:40 PM Windows Forms 3
loading
Tags: GridControl
Nhilesh Baua
Asked On June 12, 2007 06:14 AM

Hi,

I want to add multiple Grid Summary Column Descriptors to the GGC. I also want to set custom row Header text for the same.

Any ideas?

Regards,
NBaua

haneefm [Syncfusion]
Replied On June 12, 2007 02:27 PM

Hi Nhilesh,

Issue 1 : Multiple SummaryColumnDescriptor:
>>>>>>>>>>>>>>>>>>>>>>>>>>
You can add multiple GridSummaryColumnDescriptor elements to one GridSummaryRowDescriptor. The GridSummaryColumnDescriptor.DisplayColumn property lets you specify under which column the summary should be displayed in the grid. GridSummaryColumnDescriptor elements that are added to the same row descriptor will be shown in the same row. Please refer to the \Syncfusion\EssentialStudio\5.1.1.0\Windows\Grid.Grouping.Windows\Samples\2.0\Summaries\Summary Tutorial browser sample and let me know if this helps.

Here is a forum thread that shows you "How to show multiple summaryrow at the very top or bottom of grid?".
http://www.syncfusion.com/support/forums/message.aspx?MessageID=48942

Issue 2: RowHeaderText
>>>>>>>>>>>>>>>>>>>>>>>>>>
You can handle the QueryCellStyleInfo event to set the text in a RowHeaderCell. Here is a code snippet

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if( e.TableCellIdentity.TableCellType == GridTableCellType.RecordRowHeaderCell
|| e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordRowHeaderCell)
{
e.Style.CellType = "Static";
e.Style.Text = "R1";
}
}

Best regards,
Haneef

Nhilesh Baua
Replied On June 13, 2007 02:14 AM

Hi Haneef,

Thanks for the prompt reply.
I am in need of something like of structure attached in the word document. Sorry there is no image editor I can use, so I have illustrated my requirement through a word table with the description. Hope this clears the doubt I have with your help as usual.

Thanks in advance.

ComplexHeaders.zip

haneefm [Syncfusion]
Replied On June 13, 2007 04:40 PM

Hi Nhilesh,

You would have to derive the GridEngine and add an extra row header set up through the custom section above and below the the column header. Please refer this forum thread and let me know if this helps.

Best Regards,
Haneef

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.

;