DataGrid.ColumnHeaderDragStarted 事件

定义

在用户使用鼠标开始拖动列标题时发生。

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

事件类型

EventHandler<DragStartedEventArgs>

注解

仅当 CanUserReorderColumns 属性为 true时,用户才能通过拖动列标题来更改列顺序。

适用于

另请参阅