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.v24.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.