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

Hierarchical grid - Parent rows with no rows

Thread ID:





116131 Apr 9,2014 12:34 PM UTC Apr 10,2014 11:56 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Piermaria Saglietto
Asked On April 9, 2014 12:34 PM UTC

i have a hierarchical grid (two levels: parent rows and child rows).
Could i mark (with a color or otherelse) parent rows that haven't child rows ?
Thanks in advance

Satheeskumar S [Syncfusion]
Replied On April 10, 2014 11:56 AM UTC

Hi Piermaria,

Thanks for your interest in Syncfusion Products.


We are glad to let you know that your requirement “Apply styles to Parent Grid” Can be achieved. We have used RowDataBound Event to apply the styles tp parent grid rows.

Please refer the below code snippet.

void ggc_RowDataBound(object sender, RowDataBoundEventArgs e)


            if (e.Element.Kind == DisplayElementKind.Record && e.Element.ChildTableGroupLevel == 0)


                        e.Row.BackColor = Color.Green;




For your convenience we have attached the sample. Could you please let us know if it was helpful.


Please let us know if you need any further assistance.


Satheeskumar S

Attachment: Grouping_IssueData_Import_c2df8146.zip


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