windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-dragobjectovereventargs-5576ccae.md
Gets an object containing information about the dragged header’s current position.
Namespace : DevExpress.XtraGrid.Views.Base
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public PositionInfo DropInfo { get; }
Public ReadOnly Property DropInfo As PositionInfo
| Type | Description |
|---|---|
| DevExpress.XtraGrid.Dragging.PositionInfo |
A DevExpress.XtraGrid.Dragging.PositionInfo descendant.
|
If a column header is being dragged within a Grid View, DropInfo 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 is being dragged, the property returns a DevExpress.XtraGrid.Dragging.BandPositionInfo object.
To determine whether the View allows you to drop the header at the current position, read the DropInfo object’s Valid property.
If a column header is being dragged, you need to use the DragInfo object’s Index and InGroupPanel properties to identify the current header’s position. The following combinations are available:
Use the DropInfo object’s DestinationCollection and Index properties. These properties allow you to identify the band collection to which the band will be inserted if dropped, and its index/position within the collection.
The Index property can also return negative values. See the table below for details:
| Value | Description |
|---|---|
| -1 | The band is in its original position. |
| -100 | The band is outside the band collection and outside the Customization Form. The band will be hidden if dropped. |
| -101 | The band is under the Customization Form. The band will be hidden if dropped. |
See Also