I have a hierarchical xamdatagrid with Views(Parent) and Schemas(Childs), I want to bind the selected schema(child) to the model so I can know what is the current child selected, any suggestion?
Hello Josue,
Thank you for your post.
I am very glad that you have managed to resolve your issue.
Please let me know if you need any further assistance on this matter.
Hi, actually what I did was to use the ActiveDataItem and changed my property in the model to object so I was able to capture any row selected from wherever the parent or child grid.
Thanks
I am just checking if my last reply was helpful for you.
If you require any further assistance please do not hesitate to ask.
I have been looking into your post. What I can suggest is to use the SelectedDataItems property of XamDataGrid to achieve the functionality that you want. You can read more details about it from our online documentation from the following links:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/xamDataGrid_Selected_Data_Items.html
and
http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v14.1~Infragistics.Windows.DataPresenter.DataPresenterBase~SelectedDataItems.html
This property returns an array that containing a data items of the selected records or selected cells and you can bind your own property from your view model to it. I created a short sample application based on your scenario to show you how you can achieve this.