DataGrid.ColumnReordering Event

Definition

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

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

Event Type

Remarks

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