Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DragObjectDropEventArgs.Canceled Property

Gets whether the dragged header has been dropped successfully.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.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