Back to Devexpress

GridView.DragObjectStart Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-5a899344.md

latest3.8 KB
Original Source

GridView.DragObjectStart Event

Fires when the end-user attempts to drag a column header or band header.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("DragDrop")]
public event DragObjectStartEventHandler DragObjectStart
vb
<DXCategory("DragDrop")>
Public Event DragObjectStart As DragObjectStartEventHandler

Event Data

The DragObjectStart event's data class is DragObjectStartEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowGets or sets whether the drag and drop operation can be started.
DragObjectGets the column or band whose header is about to be dragged.

Remarks

The following events enable you to control column header and band header dragging:

When handling the DragObjectStart event, use the DragObject parameter to identify the column or band whose header is about to be dragged. To prevent a drag and drop operation, set the DragObjectStartEventArgs.Allow parameter to false.

Note : the DragObjectStart event is not raised if dragging is prohibited by the column’s OptionsColumn.AllowMove or the band’s OptionsBand.AllowMove option.

See Also

DragObjectDrop

DragObjectOver

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace