Hi,
I am using XamGrid, with follow setting
How can I get the select row in the ViewModel?
Thanks
Hello Ted,
Thank you for your reply. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank You. I will try implement it in my code.
Thank you for your post. I have been looking into the functionality that you have described and since you have allowed single selection, the data of the selected row of the XamGrid will become the ActiveItem. This will allows you to add a property in your view model and bind that property to the ActiveItem property of the XamGrid with two way mode. By doing so, when you click on a row, it will become sleected and the ActiveItem will be updated to the data of the row, this will trigger the binding and the property of your view model will be also updated. I have created a sample application for you, that shows how you can implement this approach.
Please let me know if you need any further assistance on the matter.