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

Removing empty sub-groups with asymmetric bucketing

Thread ID:





72322 Mar 13,2008 03:20 PM UTC Mar 28,2008 09:49 PM UTC WinForms 1
Tags: Grouping
Joel Reisner
Asked On March 13, 2008 03:20 PM UTC

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 09:49 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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