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

Nested child grid - formatting

Thread ID:





115842 Feb 10,2014 10:03 AM UTC Feb 11,2014 11:21 AM UTC WPF 1
Tags: GridDataControl
Juraj Tomana
Asked On February 10, 2014 10:03 AM UTC


Is there some possibility to format cells in nested-child-grid (e.g. background) like in parent grid using QueryCellsInfo?

I know about using conditional formats, but I have a lot of records and conditional formats are in this case very slow.



Saravanan M [Syncfusion]
Replied On February 11, 2014 11:21 AM UTC

Hi Juraj, 

Thanks for contacting Syncfusion support, 

We have analyzed your query. You can format the styles for nested grid using QueryCellInfo event. You can get child grid when record has been expanded. You can hook child grid QueryCellInfo event from RecordExpanded event. Please refer below code snippet. 

Code snippet[C#]:

void Child_RecordExpanded(object sender, GridDataValueEventArgs<GridDataRecord> e)


  e.Value.ChildModels[0].QueryCellInfo += ChildGrid_QueryCellInfo;




We have prepared a sample based on your requirement and you can download it from below attachment. 

Please let us know if this sample helps you, 



Attachment: NestedWith_QueryCellinfo_a0a727ff.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