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.

GridSummaryRow - show category in summary column?

Thread ID:

Created:

Updated:

Platform:

Replies:

50451 Oct 11,2006 03:13 PM Oct 16,2006 12:41 AM Windows Forms 1
loading
Tags: GridControl
Mike Brietzke
Asked On October 11, 2006 03:13 PM

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 12:41 AM

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.

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.

;