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

Rolling up empty groups

Thread ID:

Created:

Updated:

Platform:

Replies:

72364 Mar 15,2008 01:24 PM UTC Mar 26,2008 10:44 PM UTC WinForms 1
loading
Tags: Grouping
Yuval Reisner
Asked On March 15, 2008 01:24 PM UTC

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 10:44 PM UTC

Hi,

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

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=311


Best regards,
Johnson



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.

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

;