Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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

#Declaration

[DXCategory("Action")]
public event TileViewItemDragEventHandler ItemDrag

#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