Skip to main content

DragObjectDropEventArgs.DropInfo Property

Gets an object providing information about drop position.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public PositionInfo DropInfo { get; }

Property Value

Type Description
DevExpress.XtraGrid.Dragging.PositionInfo

A DevExpress.XtraGrid.Dragging.PositionInfo descendant.

Remarks

If a column header was dragged within a Grid View, the DropInfo property returns a DevExpress.XtraGrid.Dragging.ColumnPositionInfo object. For columns in Banded Grid Views and Advanced Banded Grid Views, the DropInfo property returns DevExpress.XtraGrid.Dragging.BandedColumnPositionInfo and DevExpress.XtraGrid.Dragging.AdvBandedColumnPositionInfo objects respectively. If a band was dragged, the property returns a DevExpress.XtraGrid.Dragging.BandPositionInfo object.

You will rarely need to use the returned object’s properties. The reason is that the GridView.DragObjectDrop event fires after a drag and drop operation has been completed. Thus, you can read the dragged column’s or band’s properties to identify its target position. Use the DragObjectDropEventArgs.DragObject property to identify and obtain the dragged object.

See Also