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.

Rolling up empty groups

Thread ID:





72364 Mar 15,2008 09:24 AM Mar 26,2008 06:44 PM Windows Forms 1
Tags: Grouping
Yuval Reisner
Asked On March 15, 2008 09:24 AM

I'm bucketing a dataset according to three levels: level1, level2, level3. Sometimes level 3 is empty. Is there a way to roll up the items into the level 2 header and not show the empty level 3 header? I'm rephrasing a previous question because I'm thinking maybe it wasn't understood.

Administrator [Syncfusion]
Replied On March 26, 2008 06:44 PM


To disable the Expand of column header where no records found in child table,you need to write below code in the event of QueryCellStyleInfo.

protected void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordPlusMinusCell)
Record r = e.TableCellIdentity.DisplayElement.ParentRecord as Record;
if (r != null && r.NestedTables.Count > 0 && r.NestedTables[0].ChildTable.FilteredChildNodeCount == 0)
e.Style.CellType = "Static";

please refer the below KB article


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.