Back to Devexpress

DragObjectDropEventArgs.Canceled Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-dragobjectdropeventargs-eb41495c.md

latest1.9 KB
Original Source

DragObjectDropEventArgs.Canceled Property

Gets whether the dragged header has been dropped successfully.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public bool Canceled { get; }
vb
Public ReadOnly Property Canceled As Boolean

Property Value

TypeDescription
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.

See Also

DragObjectOver

DragObjectDropEventArgs Class

DragObjectDropEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace