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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridSummaryRow - show category in summary column?

Thread ID:

Created:

Updated:

Platform:

Replies:

50451 Oct 11,2006 07:13 PM UTC Oct 16,2006 04:41 AM UTC WinForms 1
loading
Tags: GridControl
Mike Brietzke
Asked On October 11, 2006 07:13 PM UTC

Is there a way to display the {category} in a summary column? For example if I group by account# I want to display the account# in the Account column instead of in the caption.

Administrator [Syncfusion]
Replied On October 16, 2006 04:41 AM UTC

Hi Michael,

You could try handling QueryCellStyleInfo event as shown in the following code:

switch(e.TableCellIdentity.TableCellType )
{
case GridTableCellType.SummaryTitleCell:
GridSummaryRow row = e.TableCellIdentity.DisplayElement as GridSummaryRow;
if( row != null && row.ParentGroup != null)
{
object category = row.ParentGroup.Category;
if( category != null && category != string.Empty )
e.Style.Text = category.ToString() ;
}
break;
}

Please let me know if you need further assistance.

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.

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

;