Skip to main content
A newer version of this page is available. .

GridView.DragObjectDrop Event

Fires immediately after a drag and drop operation on a column header or band header has been completed.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

[DXCategory("DragDrop")]
public event DragObjectDropEventHandler DragObjectDrop

Event Data

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

Property Description
Canceled Gets whether the dragged header has been dropped successfully.
DragObject Gets the column or band whose header has been dropped.
DropInfo Gets an object providing information about drop position.

Remarks

Handle the DragObjectDrop event to perform actions when end-users finish dragging column and band headers. This can be used, for instance, to do any cleanup necessary after handling the GridView.DragObjectStart event.

The event serves only as a notification that the operation has been completed. To control whether headers can be dropped at a particular position, handle the GridView.DragObjectOver event.

For general information on handling header dragging, see the GridView.DragObjectStart topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DragObjectDrop event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also