Syncfusion.Grid.Windows


QueryAllowDragColumnHeader Event

Occurs when the user hovers the mouse over a column header or clicks on it. In your event handler, you can determine if the selected column can be dragged.
Syntax
'Declaration
 
<CategoryAttribute("Drag Drop")>
<DescriptionAttribute("Occurs when the user hovers the mouse over a column header or clicks on it.")>
Public Event QueryAllowDragColumnHeader As GridQueryDragColumnHeaderEventHandler
'Usage
 
Dim instance As GridControlBaseImp
Dim handler As GridQueryDragColumnHeaderEventHandler
 
AddHandler instance.QueryAllowDragColumnHeader, handler
[Category("Drag Drop")]
[Description("Occurs when the user hovers the mouse over a column header or clicks on it.")]
public event GridQueryDragColumnHeaderEventHandler QueryAllowDragColumnHeader
Event Data

The event handler receives an argument of type GridQueryDragColumnHeaderEventArgs containing data related to this event. The following GridQueryDragColumnHeaderEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether to allow drag. AllowDrag to False if you do not want to allow the user to drag the specified Column.  
Gets Column Name. You can call TableDescriptor.Columns[Column] to get the GridColumnDescriptor.  
Gets the table control.  
Gets Name of the column to insert at. You can call TableDescriptor.Columns[InsertBeforeColumn] to get the GridColumnDescriptor.  
Gets or sets reason why this event was raised (Show Red Indicator, MouseUp, or HitTest).  
Remarks
You can disallow dragging the column when you assign False to AllowDrag.
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also