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.

Highlight expanded rows

Thread ID:

Created:

Updated:

Platform:

Replies:

125415 Aug 15,2016 11:49 PM Aug 19,2016 12:52 AM Windows Forms 3
loading
Tags: GridGroupingControl
sumudu
Asked On August 15, 2016 11:49 PM

Hi,

There are 4 nested tables in my GCC. How i can highlight expanded rows in all the 4 tables

Thanks & Regards,
Sumudu Ekanayake 

Mohanraj Gunasekaran [Syncfusion]
Replied On August 16, 2016 12:27 PM

Hi Sumudu, 
 
Thanks for using Syncfusion product, 
 
In order to highlight the expanded records which are all having the nested table by handling the QueryCellStyleInfo event. Please refer the below code snippet and attached sample. 
 
Code snippet: 
void groupingGrid1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) 
    if (e.TableCellIdentity!=null
    { 
        Record r = e.TableCellIdentity.DisplayElement.GetRecord(); 
        if (r != null && r.IsExpanded && r.HasNestedTables && (e.Style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.Style.TableCellIdentity.TableCellType == GridTableCellType. AlternateRecordFieldCell)) 
        { 
            e.Style.BackColor = Color.LightBlue; 
            e.Style.TextColor = Color.White; 
        } 
    } 
} 
 
Sample link:  Hierarchy sample 
 
Regards, 
Mohanraj G. 
 


sumudu
Replied On August 18, 2016 02:03 AM

Hi Mohanraj,

Thank you very much for the update.
It's working fine.

Thanks & Regards,
Sumudu Ekanayake

Mohanraj Gunasekaran [Syncfusion]
Replied On August 19, 2016 12:52 AM

Hi Sumudu, 

Thanks for your update, 

We are glad to know that your reported problem has been resolved. Please let us know if you need any further assistance.  
 
Regards, 
Mohanraj G. 


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.

;