DataGrid.ColumnReordering Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.