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

Child record count zero

Thread ID:





71192 Jan 21,2008 08:21 PM UTC Jan 22,2008 03:58 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Kathy Gray
Asked On January 21, 2008 08:21 PM UTC

Is there a way to set my Grid Grouping Control, so that if a parent row has zero child records, it will not show the +-?

Rajarajeswari S [Syncfusion]
Replied On January 22, 2008 03:58 AM UTC

Hi Kathy,

Thanks for using Syncfusion products.

When the Child table's record count is zero the Plus/Minus cell type of its Parent table should be set as static to make it disappear. Please refer the below code snippet which illustrates this:

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 link to get more details and sample which illustrates the above:


Please let me know if this helps you out.



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

or the page will be automatically redirected to 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