Right now My XamDatagrid have like this, When I expand parent row , it is displaying all column headers of child row for each exapnd, I do have class like this
Emp:
string Name, string Age, string Phone, ObservalbleCollection<PaidInfo> PaidInfoLIst;
PaidInfo
DateTime DateofPay, double amount;
I want to merge child headers with parent headers like this, I tried HeaderPlacement=OnTopOnly, but didn't work.
also, when I collpased row it should hide Date & Amount column.
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks you r life saver.
I modified the sample I sent you before, so now it has the functionality you want. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks Stefan ,
This will help me but not completly, bec'z I do have some column that common on parent and child row, how could I stick that coulumn together , also when I will resize common column from parent it also will resize child as well. like below, if I change width of ID column it should also change width of child row.
Thanks
Hello again,
I have created a sample project for you with the functionality you want. Basically I added fake UnboundFields in order to make the layout look like you want. I also handled the RecordExpnaded and RecordCollapsed events in order to make the Field visible or not. I created a Style for the CellValuePresenter and handled its SizeChnaged event, so I could be able to synchronize the Cell widths. Please let me know if this helps you or you need further assistance on this matter.