Hi,
We have number of fields for XAMDataGrid where first field contains an EditButton. And remaining are from my ViewModel Object.
I need to display a panel which contains number of controls for editing the selected DataItem. That panel should be immediatly after the selected Item. Can you suggest me with some solution for this. A sample code will help me more.
Thank you.
Account Number
Name
Details
Location
Edit
1111
Test1
Test1 test 1
Hyderabad
Some controls with above data to Edit. And also Save and Cancel Buttons for saving and cancelling. After Save/Cancel I need to close this panel.
2222
Test2
Test2 Test2
New York
3333
Test3
Test3 Test3
London
Thanks,
Satya
S
Hi Stefan,
I executed your sample. It is not showing any edit box. Button click event is working fine and
(Utilities.GetAncestorFromType(sender as DependencyObject, typeof(DataRecordPresenter), true) as DataRecordPresenter).IsExpanded also true.
My .Net framework is 4.0 and Infragistics version is 10.3. I changed the your sample (Framework 4.5 and Infragistics 12.2) to Framework 4.0 and Infragistics V10.3 then executed.
Hello Satya,
I have created a sample project for you with the functionality you want. Basically I added an UnboundField, which I made Expandable and set its ExpandedCellStyle. Also in the sample you can see how to get the DataItem’s Properties. In the ExpandedCellStyle’s Template you can add the controls you want(Buttons, Textboxes, etc.)
Hope this helps you
Thank you for your reply. I already gone through the adorner sample. But i am not able to pass DataItem's data context to the Adorner. And also i want open and close the adorner on clicking of edit button. Can you provide me a sample with these two features. So it is helpful to me.
Thank you for your post. I have been looking into and I can suggest you see the sample in the Samples Browser under xamDataGrid / Editing and Selection / Adorning Editors section, where it is shown how to achieve the functionality you want.
Hope this helps you.