Skip to main content

DragObjectDropEventArgs.Canceled Property

Gets whether the dragged header has been dropped successfully.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v23.2.dll

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

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.

See Also