Back to Devexpress

TileViewOptionsDragDrop.AllowDrag Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewoptionsdragdrop.md

latest5.0 KB
Original Source

TileViewOptionsDragDrop.AllowDrag Property

Gets or sets whether the built-in tile drag-and-drop functionality is enabled.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowDrag { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AllowDrag As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the built-in tile drag-and-drop functionality is enabled; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowDrag
TileView

.OptionsDragDrop .AllowDrag

|

Remarks

Use the AllowDrag property to enable the built-in drag-and-drop functionality. Built-in tile drag-and-drop operations are reflected at the data source level. When a tile is dropped at a certain position, the Tile View moves the tile’s underlying data record to a corresponding position in the data source.

Tiles can be combined into groups by specifying the group column (TileViewColumns.GroupColumn). If a tile is moved from one group to another group, the underlying record’s group field ( GroupColumn.FieldName ) is changed accordingly.

When you manually create Kanban Groups (see TileView.OptionsKanban.Groups), you can use the following properties to disable and customize drag-and-drop operations for individual groups.

Handle the following events to manage drag-and-drop operations and implement your own algorithm for moving and modifying underlying data records.

See Also

DropTargetGroups

AllowItemDrag

BeforeItemDrag

BeforeItemDrop

ItemDrag

ItemDrop

TileViewOptionsDragDrop Class

TileViewOptionsDragDrop Members

DevExpress.XtraGrid.Views.Tile Namespace