Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1155
Trouble displaying nested List<object>
posted

I am using a XamDataGrid to attempt to display records from nested List<objects> I have a Top level class of type List<> which has two sub lists of type List<>.

Three issues.

1. When displayed the nested lists are stacked instead of display as a parent/child drill down style. They have a common key field and the grid layouts are not picking up on them.

2. I have had always found this to be sort of a bug, but it's probably me. When ever I define a layout and set AutoGenerateFields="False", my layout is never displayed? That same issue is occuring on this grid. The nested data is not being associated with the layout.

3. When I try to assign the layout to the data, it tells me the data object does not contain the key field. I suspect the grid reflection cannot find it because it's nested?

I have included an image, the xaml and the code behind.

Ideas appreciated.

Glenn