Microsoft Silverlight will reach end of support after October 2021. Learn more.
Occurs before a DataGrid column moves to a new position in the display order.
Assembly: System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
'Declaration Public Event ColumnReordering As EventHandler(Of DataGridColumnReorderingEventArgs)
public event EventHandler<DataGridColumnReorderingEventArgs> ColumnReordering
You can handle this event to customize the visual display of a column header drag-and-drop operation, or to replace the default drag-and-drop behavior completely. To customize the appearance of the dragged column header and the drop location indicator, set the DragIndicator and DropLocationIndicator properties. To replace the default behavior completely, set the Cancel property to true and then provide your own drag-and-drop implementation.
Users can change the column order by dragging column headers only if the CanUserReorderColumns property is true.
Supported in: 5, 4, 3
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.