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.

Removing empty sub-groups with asymmetric bucketing

Thread ID:





72322 Mar 13,2008 11:20 AM Mar 28,2008 05:49 PM Windows Forms 1
Tags: Grouping
Joel Reisner
Asked On March 13, 2008 11:20 AM

I'm bucketing a dataset according to three columns: Bucket1, Bucket2, Bucket 3. Not all items have values for Bucket 3 (the lowest bucketing level). In that case the grid is showing a bucket 2 header, an empty bucket 3 header and then the items. Is there a way to remove the empty bucket 3 header and have those items assiciated directly with the bucket 2 header? Also, is there a way of determining the order in which sub-groups are displayed within a group?



Asymmetric bucketing.zip

Administrator [Syncfusion]
Replied On March 28, 2008 05:49 PM

Hi Joel,

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.