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

Hide child group in GridGrouping

Thread ID:

Created:

Updated:

Platform:

Replies:

25539 Mar 1,2005 12:11 PM UTC Mar 1,2005 03:37 PM UTC WinForms 3
loading
Tags: GridControl
Ayman
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

Ayman
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";
	}
}

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

;