Identifying a moved column

Nov 26, 2008 at 1:05 PM
In my code I am handling the ColumnDisplayIndexChanged event. Using the DisplayIndex property I can identify the new column index after the move. Is there a reliable way to figure out the old display index before the move? I am reluctant to analyze the header property to identity the column in the data model.



Nov 26, 2008 at 5:47 PM
Are you speaking of the end-user column reorder (by means of dragging the header)? If yes then you can use ColumnReordering and ColumnReordered events of DataGrid.