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 post. I have been looking into it and I can suggest you see these forum threads:
http://es.infragistics.com/community/forums/t/51543.aspx
and
http://es.infragistics.com/community/forums/p/23298/85318.aspx
where similar questions as yours is already discussed. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan
Thanks to response me, I tried that but I was not able to fix that issue, can u please send me one sample for that?
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.
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.
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.
Thanks you r life saver.
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.