Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DragObjectDropEventArgs.DropInfo Property

Gets an object providing information about drop position.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.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