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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide child group in GridGrouping

Thread ID:





25539 Mar 1,2005 12:11 PM UTC Mar 1,2005 03:37 PM UTC WinForms 3
Tags: GridControl
Asked On March 1, 2005 12:11 PM UTC

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

Administrator [Syncfusion]
Replied On March 1, 2005 01:47 PM UTC

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

Replied On March 1, 2005 02:09 PM UTC

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 03:37 PM UTC

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.

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

Live Chat Icon For mobile
Live Chat Icon