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
645
XamDataGrid hierarchical data with aligned columns
posted

Hi!

I want to fill XamDataGrid with hierarchical data so as the columns' coordinates (left point-right point) of both parent record and child records be equal.

For example,
my data type is

class MyData
{
public string Name;
public string Info;
public List<MyData> ChildData;
}

The result I want on my screen is

Name--------------------Info---
ParentName1            ParentInfo1
+
    Name-----------------Info---
    ChildName            ChildInfo
    +
        Name--------------Info
        SubChildName SubChildInfo
ParentName2            ParentInfo2

All the Info-values must go straight one below other, without offset to the left or to the right. If I will resize the column Info I want that all the Info-columns resize synchroniously.

How can I do like that?