All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TileView.ItemDrag Event

Fires repeatedly when a user drags a tile. Allows you to prevent a tile from being dropped at a specific position. This event does not fire when you enable drag-and-drop using Drag And Drop Behavior.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Action")]
public event TileViewItemDragEventHandler ItemDrag
<DXCategory("Action")>
Public Event ItemDrag As TileViewItemDragEventHandler

Event Data

The ItemDrag event's data class is DevExpress.XtraGrid.Views.Tile.ItemDragEventArgs.

Remarks

Use the TileView.OptionsDragDrop.AllowDrag setting to enable the built-in tile drag-and-drop feature.

The ItemDrag event fires repeatedly while dragging a tile. The event provides the following arguments.

  • HitInfo - Allows you to identify the current position, the group and item being dragged over.
  • AllowDrop - Set this property to false to prevent the current item from being dropped at a specific position.
  • Cursor - Allows you to change the default mouse cursor.
  • RowHandle - Returns the row handle of the current tile. Row handles allow you to identify rows (tiles) when you retrieve row values.
See Also