Skip to main content

GridView.IsDraggingState Property

Tests whether the end-user is currently dragging a column header.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public override bool IsDraggingState { get; }

Property Value

Type Description

true if a dragging operation is being performed within the view; otherwise, false.


Use the IsDraggingState property to determine whether a column header is being dragged at the moment. This can be used to determine whether particular custom actions are currently allowed. For instance, you can suspend or cancel your custom actions while a View element is being dragged.

Note that you can also handle the GridView.DragObjectStart, GridView.DragObjectOver and GridView.DragObjectDrop events to control dragging operations within the View.

Banded Grid Views override this property to support band header dragging (see the BandedGridView.IsDraggingState property description). The action currently being performed can be determined using the View’s GridView.State property (the BandedGridView.State property for Banded Grid Views).


Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the IsDraggingState member must not be invoked for these Views. The IsDraggingState member can only be used with Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also