Back to Devexpress

TileView.ItemDrag Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileview-1564f837.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Action")]
public event TileViewItemDragEventHandler ItemDrag
vb
<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

AllowDrag

AllowItemDrag

DropTargetGroups

BeforeItemDrag

BeforeItemDrop

ItemDrag

ItemDrop

TileView Class

TileView Members

DevExpress.XtraGrid.Views.Tile Namespace