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
XamDataGrid - Nested hierarchy

Hello Community!

Attached please find the sample "XamDataGrid_hierLayout.rar". I took the example from this thread Flat Datasource, but nested ... and tried some possible solutions for my problem.

I have a list of <product> Items bound to the XamDatagrid. Inside the class <product> is the property NestedProperty of type  <NestedData>. <NestedData> contains the observable collection "WatchList". I want to display the WatchListData Elements of my NestedProperty in the DataGrid. 

In the output I see no binding errors nor do i get any exceptions. The bound WatchList is shown as "(collection)" only in the grid.

Have I missed something in my xaml?


No Data
  • 1500
    Verified Answer
    Offline posted

    Hello Alexander,

    Thank you for posting on our forums.

    In order to do hierarchy with alternate binding, you need to specify the dataType of the collection - IEnumerable.

    I have modified the sample you attached, please have a look.


    Tihomir Tonev
    Software Developer

No Data