Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Solution, if the object that was selected remains in the collection:
1. add the SelectedItem property to the ViewModel (with INPC);
2. before updating the collection, remember it, after updating the collection - set the stored value into it;
3. in the DataGrid, add the binding of the selected grid element to the ViewModel propertySelectedItem="{Binding SelectedItem Mode=TwoWay}"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question