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.

TableCellType = SummaryFieldCell in QueryCellStyleInfo not hit for Custom Summary Row

Thread ID:





49354 Sep 16,2006 12:26 PM Sep 18,2006 12:45 AM Windows Forms 1
Tags: Grouping
Asked On September 16, 2006 12:26 PM

I have grid with a Custom Summary Row at the top.
I have the fllw code in the QueryCellStyleInfo event; however, I can never hit this code. Are the cells in the SummaryRow not SummaryFieldCell?

if(e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)
int i = e.TableCellIdentity.Table.TableDescriptor.ColIndexToField(e.TableCellIdentity.ColIndex);
FieldDescriptor fd = e.TableCellIdentity.Table.TableDescriptor.Fields[i];
if(fd.Name == e.TableCellIdentity.Table.TableDescriptor.VisibleColumns[2].Name)

Administrator [Syncfusion]
Replied On September 18, 2006 12:45 AM

Hi James,

By default the GridTableCellType.SummaryFieldCell Enumeration indicates field cell in a SummaryRow. If you did add the GridSummaryRow to the grid without adding the GridSummaryColumnDescriptor, the SummaryFieldCell does not exist in the GridSummaryRow. It contains SummaryEmptyCell only. Attached sample works fine here.

//QueryCellInfo event.
if(e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell )
Console.WriteLine(" The {2}=> {0},{1} " ,e.TableCellIdentity.RowIndex,e.TableCellIdentity.ColIndex,e.TableCellIdentity.TableCellType);
if(e.TableCellIdentity.TableCellType == GridTableCellType.SummaryEmptyCell || e.TableCellIdentity.TableCellType == GridTableCellType.SummaryTitleCell)
Console.WriteLine("The {2}=> {0},{1} " ,e.TableCellIdentity.RowIndex,e.TableCellIdentity.ColIndex,e.TableCellIdentity.TableCellType);

Sample: http://www.syncfusion.com/Support/user/uploads/GGCSummaryAtTop_9a31f33c.zip

Let me know if this helps.
Best Regards,


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.