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.

Hierarchical grid - Parent rows with no rows

Thread ID:

Created:

Updated:

Platform:

Replies:

116131 Apr 9,2014 08:34 AM Apr 10,2014 07:56 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Piermaria Saglietto
Asked On April 9, 2014 08:34 AM

Hi,
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
Piermaria

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

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.

Regards,

Satheeskumar S


Attachment: Grouping_IssueData_Import_c2df8146.zip

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.

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.

;