I am having trouble getting a list of selected rows on a tree list control. I have set the MultiSelectMode="Row". I understand you have a SelectedRows property but it isn't possible to binding to it from the XAML markup. Also I have tried using SelectedRowsSource and binding that to a SelectedRowsCollection object on the view model and that doesn't work either. Can you help ?
Thank you for your inquiry. You can achieve this goal by binding to the TreeListView.SelectedRowsSource collection. Would you please clarify what does not work in your application when you use this approach?
I recommend you review the MVVM - How to bind the GridControl's selected rows to a property in a ViewModel example. It demonstrates how to bind GridControl's selected rows to a property in ViewModel. I have changed this example in accordance with your requirements. Please take a moment to review it in the attachment and let me know if you need further assistance.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.