Hi,
i have a GridView binded to an observable collection of "items" and its SelectedItem property binded to an item in the ViewModel.
Example to explain the behavior that I want to avoid:
I have 3 items in the collection and in the grid I've selected the second row, corresponding to the second element of the collection.
If I add a new element in the collection, the gridview automatically adds a new row for it (and thats ok) and select this new row (which is not ok for me, in this case I want to keep the selection on the second row)
Any idea to achieve this?
Thanks
i have a GridView binded to an observable collection of "items" and its SelectedItem property binded to an item in the ViewModel.
Example to explain the behavior that I want to avoid:
I have 3 items in the collection and in the grid I've selected the second row, corresponding to the second element of the collection.
If I add a new element in the collection, the gridview automatically adds a new row for it (and thats ok) and select this new row (which is not ok for me, in this case I want to keep the selection on the second row)
Any idea to achieve this?
Thanks