DragDropBehaviorProperties.AllowDrop Property
Gets or sets whether users are allowed to drop data elements on the attached control.
Namespace: DevExpress.Utils.DragDrop
Assembly: DevExpress.Utils.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true to allow users to drop data elements on the attached 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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowDrop property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.