다음을 통해 공유


DataGrid.ColumnHeaderDragCompleted Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Occurs when the user drops a column header that was being dragged using the mouse.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public Event ColumnHeaderDragCompleted As EventHandler(Of DragCompletedEventArgs)
public event EventHandler<DragCompletedEventArgs> ColumnHeaderDragCompleted
<sdk:DataGrid ColumnHeaderDragCompleted="eventhandler"/>

Remarks

The ColumnHeaderDragCompleted event occurs when the user releases the left mouse button after dragging a column header. Users can change the column order by dragging column headers only if the CanUserReorderColumns property is true.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.