TileView.ItemDrop Event
Fires after a tile drop operation has been completed. This event does not fire when you enable drag-and-drop using Drag And Drop Behavior.
Namespace: DevExpress.XtraGrid.Views.Tile
Assembly: DevExpress.XtraGrid.v19.2.dll
Declaration
Event Data
The ItemDrop event's data class is ItemDropEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
GroupColumnValue | Gets the value of the current group (the TileViewColumns.GroupColumn‘s value) to which the tile has been dropped. |
ListSourceRowIndex | Gets the tile’s index in the data source. |
PrevGroupColumnValue | Gets the value of the group (the TileViewColumns.GroupColumn‘s value) from which the tile was originally dragged. |
PrevListSourceRowIndex | Gets the tile’s previous index in the data source. |
RowHandle | Gets the row handle of the tile. |
Remarks
The built-in tile drag-and-drop feature can be enabled with the TileViewOptionsDragDrop.AllowDrag setting (available from the TileView.OptionsDragDrop property). Using the following events, you can customize and handle built-in drag-and-drop operations:
- TileView.BeforeItemDrag - Fires when a tile drag operation is about to be started. Allows you to provide a drag image, or to cancel the operation. This event does not fire when you enable drag-and-drop using Drag And Drop Behavior.
- TileView.BeforeItemDrop - Fires when a tile drop operation is initiated. This event does not fire when you enable drag-and-drop using Drag And Drop Behavior.
TileView.ItemDrop
- Fires after a tile drop operation has been completed. This event does not fire when you enable drag-and-drop using Drag And Drop Behavior.
Handle the ItemDrop event to perform additional customization of a tile after it has been dropped. The event’s parameters allow you to identify the previous and current position of the tile and the underlying data record.