This question is locked. New answers and comments are not allowed.
Hi,
I have implemented the ability to move rows up and down a GridView. The GridView itself is editable
This works all the time except for one case
If I have 4 rows for example, and on the bottom row, I edit some of the details.
Then I decide I want to move the 1st row down to the 2nd row, so I press my button which swaps it, and sets the SelectedItem to the 2nd row
It initially selects the appropriate row but as soon as "RowLoaded" events are finished the application automatically jumps to the row I previously edited. This scenario occurs on all the rows until I select the row I changed and move it to another row. After that, the up / down functionality works without a problem.
Suggestions?
I have implemented the ability to move rows up and down a GridView. The GridView itself is editable
This works all the time except for one case
If I have 4 rows for example, and on the bottom row, I edit some of the details.
Then I decide I want to move the 1st row down to the 2nd row, so I press my button which swaps it, and sets the SelectedItem to the 2nd row
| SomeDataGrid.SelectedItem = SomeObservableCollection[index + 1]; |
It initially selects the appropriate row but as soon as "RowLoaded" events are finished the application automatically jumps to the row I previously edited. This scenario occurs on all the rows until I select the row I changed and move it to another row. After that, the up / down functionality works without a problem.
Suggestions?