Back to Devexpress

DataGridView.DragRowOver Event

mobilecontrols-devexpress-dot-xamarinforms-dot-datagrid-dot-datagridview-241e3db3.md

latest2.8 KB
Original Source

DataGridView.DragRowOver Event

Occurs each time a row is over another row when being dragged.

Namespace : DevExpress.XamarinForms.DataGrid

Assembly : DevExpress.XamarinForms.Grid.dll

NuGet Package : DevExpress.XamarinForms.Grid

Declaration

csharp
public event EventHandler<DropRowEventArgs> DragRowOver

Event Data

The DragRowOver event's data class is DropRowEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowGets or sets whether to allow or prohibit an operation with the row. Inherited from RowAllowEventArgs.
DragItemGets a data source item that corresponds to the dragged row. Inherited from DragRowEventArgs.
DropItemGets a data source item that corresponds to the drop target row.
DropRowHandleGets the grid’s dropped row handle.
RowHandleGets the grid’s row handle. Inherited from RowEventArgs.

Remarks

The DragRowOver event allows you to manage the drag-and-drop action on stage of moving the row over another rows.

You can prevent dropping the row to specific positions. In this case, no place for row drop is allocated.

  1. Subscribe to the DragRowOver event.

  2. In the event handler, use the RowHandle property to identify the dragged row, and the DropRowHandle property to identify the drop position. Set the Allow property to false to prohibit row drop.

See Also

DataGridView Class

DataGridView Members

DevExpress.XamarinForms.DataGrid Namespace