DataGrid.ColumnReordering Event


Occurs before a column moves to a new position in the display order.

 event EventHandler<System::Windows::Controls::DataGridColumnReorderingEventArgs ^> ^ ColumnReordering;
public event EventHandler<System.Windows.Controls.DataGridColumnReorderingEventArgs> ColumnReordering;
member this.ColumnReordering : EventHandler<System.Windows.Controls.DataGridColumnReorderingEventArgs> 
Public Event ColumnReordering As EventHandler(Of DataGridColumnReorderingEventArgs) 


You can handle this event to customize the visual display of a column header drag operation, or to replace the default drag behavior completely. To customize the appearance of the dragged column header and the drop location indicator, set the DragIndicator and DropLocationIndicator properties. Alternatively, you can set the DragIndicatorStyle and DropLocationIndicatorStyle properties.

Applies to

See also