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
360
XAM Data Grid Datasource with Child Collections and AutoGenerateFields="False"
posted

Hi Team,

I am using XamDataGrid and the data source of the grid has a property that is a collection. By default when we bind this source, all the properties are displayed as grid columns and the child collection of each row is displayed with a expand button "+" in the left side, since by default the properties IsNestedDataDisplayEnabled="True" and AutoGenerateFields="True".

I have a requirement where I need to display only a few columns and each row with the child collection should still be displayed with the expand button "+" on the left side. I have set the properties to IsNestedDataDisplayEnabled="True" and AutoGenerateFields="False". By doing this the expand button "+" is shown but child grid is not displayed.

I have attached a sample with minimum data to demonstrate the same. Please let me know if there is a way we can achieve the above requirement but AutoGenerateFields="False" and not modifying the underlying entities.

Thanks,

Srikanth V.

XamDataTreeChildNodes.zip