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.

Nested child grid - formatting

Thread ID:





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


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 06:21 AM

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.

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.