Hi,
I'm using the XamDataGrid with hierarchical data as datasource so i get this output:
Parent1 Col1 | P1 Col2 | P1 Col 3
+ Child1 Col 1| C1 Col 2 | C1 Col 3
+ Child2 Col 1| C2 Col 2 | C2 Col 3
Now i'm looking for a way to display parent and child in the same row to see something like this:
Parent1 Col1 | P1 Col2 | P1 Col 3 | C1 Col 1| C1 Col 2 | C1 Col 3
Parent1 Col1 | P1 Col2 | P1 Col 3 | C2 Col 1| C2 Col 2 | C2 Col 3
Is there a way to achieve this without manually combine parent and child in one datatype?
Thanks for your help.
- Bastian
In this case the parent will be repeated,
Hi Alan, Can you elaborate your soln for this.
I need to group it in 2 levels in a row. My entity is in this structure P1->P2->C1. Could you explain your approach again?
Thanks in advance....
I have passed this onto Product Management as well.
Thanks. So just to clarify. If you had a Customer object with multiple Phone properties which are also objects with properties. You could have the grid display.
Customer.Name, Customer.Phone[0].AreaCode, Customer.Phone[0].Subscriber, Customer.Phone[1].AreaCode, Customer.Phone[1].Subscriber.
I have accomplished it by just copy/pasting the phone field defs, multiple times. Works. But yes, this feature would be great to not have redundant field defs.
Another approach I thought I could try was to somehow declare another grid that is just the Phone record and then merge that into the parent grid multiple times. I did not see how to accomplish that. It would be really slick to be able to do it as datatemplates or contentcontrols (defined as resources).
e.g. symbolically
<xamDatagrid>
<local:customer/>
<local:phone/>
</xamDatagrid>
singlemalt, I have logged Feature Request FR13085 with Product Mangement on your behalf.
Thanks,