Skip to main content
A newer version of this page is available. .

DragDropBehaviorProperties.AllowDrag Property

Gets or sets whether users are allowed to drag data elements from the control.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v19.1.dll

Declaration

[DefaultValue(true)]
[DXCategory("DragDrop")]
public bool AllowDrag { get; set; }

Property Value

Type Default Description
Boolean **true**

true if users are allowed to drag data elements from the control; otherwise, false.

Remarks

Set the DragDropBehavior.Properties.AllowDrag property to false to use the attached control as the target of drag operations only.

Set the DragDropBehavior.Properties.AllowDrop property to false to use the attached control as the source of drag operations only. You can override this setting with the AllowDrop argument in a DragDropEvents.DragEnter event handler.

See Also