QueryRowDragging Event

Occurs when a row is being reordered to a new position in SfDataGrid.
public event QueryRowDraggingEventHandler QueryRowDragging
Event Data

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

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

Syncfusion.SfDataGrid.XForms: 17.3451.0.26

See Also