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.

Hide child group in GridGrouping

Thread ID:





25539 Mar 1,2005 07:11 AM Mar 1,2005 10:37 AM Windows Forms 3
Tags: GridControl
Asked On March 1, 2005 07:11 AM

how can i Hide child group when the parent row havn''t child rows.

Administrator [Syncfusion]
Replied On March 1, 2005 08:47 AM

Here is a forumn thread with a sample. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=8517

Replied On March 1, 2005 09:09 AM

hi Clay, I was asked how I can hide child group (in GridGrouping not in GridDataBoundGrid ) when the parent haven''t child rows. best regardes.

Administrator [Syncfusion]
Replied On March 1, 2005 10:37 AM

Sorry. You can use the QueryCellStyleInfo event and hide the +/- there.
// Prevent the +/- Icon for an empty row
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordPlusMinusCell)
	Record r = e.TableCellIdentity.DisplayElement.ParentRecord as Record;
	if (r != null && r.ParentTable.TableDescriptor.Name != DataSetBuilder.SALESTRANSACTION_LIST 		
						&& r.NestedTables.Count > 0 && r.NestedTables[0].ChildTable.GetFilteredRecordCount() == 0)
		e.Style.CellType = "Static";


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.