Skip to main content
All docs
V25.1
  • 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.1.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