Skip to main content
A newer version of this page is available. .

GridView.IsDraggingState Property

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

[Browsable(false)]
public override bool IsDraggingState { get; }

Property Value

Type Description
Boolean

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

Remarks

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

Note

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 real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also