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

DragObjectDropEventArgs.Canceled Property

Gets whether the dragged header has been dropped successfully.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public bool Canceled { get; }

Property Value

Type Description
Boolean

true if the drag and drop operation was cancelled; otherwise, false.

Remarks

The property returns false if drag and drop was performed successfully and the dragged column or band header was moved to another position. Dragging doesn’t end successfully if the end-user tried to move the header to an invalid target position or if dragging was cancelled by pressing the ESC key or the right mouse button. You can also prohibit dropping to a specific position by handling the GridView.DragObjectOver event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Canceled 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.

See Also