I got a dataGrid and after row change I need to update previously selected row. I don't know how to catch the previously selected item (or index). On dataGrid change event the 'selectedItem' property is set to the new row. I tried the 'click' event, but it is dispatched after 'change' event so it's no use.
You'll have to save it yourself.
^ Yeah, what he said.
Store the selectedIndex value in a variable. Reference the variable on your next selection/change.