How to find the row index that was being edited in a TargetUpdated event

Jan 28, 2009 at 3:42 PM
I have a TargetUpdated event triggered when any cells in my DataGrid is updated. In that event handler I would like to find out what was the row index of the cell being edited. That is, if the user edits the cell in row 5 and column 1, I would like to find out that it was row 5.

Does anyone have any suggestions on how to find this out?


Feb 5, 2009 at 3:30 AM
If you listen to DataGrid.BeginningEdit you'll get access to the current row and column that is being edited.