0

I know that there is an event handler for "ColumnReordered" with a DataGrid control. Does anyone know if there is such an event handler for the DataGridView control?

Ry-
  • 218,210
  • 55
  • 464
  • 476
Kashif
  • 865
  • 2
  • 12
  • 33
  • [Related MSDN thread](http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/b2b7b8ff-2a86-4fcb-b7b6-445025963a1d) – M.Babcock Jan 09 '12 at 01:24

1 Answers1

2

DataGridView.ColumnSortModeChanged I believe is what you want.

Mitch
  • 399
  • 1
  • 5
  • Hi Mitch, thanks for your answer. However, it is not what I'm looking for. ColumnSortModeChanged will only fire up when the ColumnSortMode setting is changed. I'm looking for an event handler that is called when a column in the DataGridView is moved around. – Kashif Jan 09 '12 at 01:44
  • 2
    Ah sorry about that. In that case, I think that ColumnDisplayIndexChanged might work. I did a quick google and found this similar question [here](http://stackoverflow.com/questions/5168115/datagridview-handle-column-reordering-event). – Mitch Jan 09 '12 at 01:50