Syncfusion.SfDataGrid.XForms
Example 

QueryColumnDragging Event

Occurs when a column is being reordered to a new position in SfDataGrid.
Syntax
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.

PropertyDescription
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.  
Remarks
You can cancel or customize the column being dragged through QueryColumnDraggingEventArgs arguments.
Example
dataGrid.QueryColumnDragging += DataGrid_QueryColumnDragging;
            
void DataGrid_QueryColumnDragging (object sender, QueryColumnDraggingEventArgs e)
{
//You can achieve your requirement here.
}
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.3451.0.14

See Also