QueryColumnDragging Event

Occurs when a column is being reordered to a new position in SfDataGrid.
public event QueryColumnDraggingEventHandler QueryColumnDragging
Event Data

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

Gets or sets a value that determines whether auto-scrolling should happen when column drag view reaches the left or right ends of the SfDataGrid.  
Gets or sets a value indicating whether the event should be canceled. (Inherited from Syncfusion.XForms.Core.CancelEventArgs)
Gets the position of drag and drop view during a column drag-and-drop operation.  
Gets the index of the column that is being dragged.  
Gets the original reporting source that raising this event (Inherited from Syncfusion.SfDataGrid.XForms.GridCancelEventArgs)
Gets the current status (drag started or dragging or drag ended) when performing column drag-and-drop operation.  
Gets the index of the column that the drag view is currently placed over or dropped.  
You can cancel or customize the column being dragged through QueryColumnDraggingEventArgs arguments.
dataGrid.QueryColumnDragging += DataGrid_QueryColumnDragging;
void DataGrid_QueryColumnDragging (object sender, QueryColumnDraggingEventArgs e)
//You can achieve your requirement here.

Syncfusion.SfDataGrid.XForms: 17.3451.0.26

See Also