Back to Devexpress

GridView.IsDraggingState Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-f6e228c7.md

latest3.9 KB
Original Source

GridView.IsDraggingState Property

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

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public override bool IsDraggingState { get; }
vb
<Browsable(False)>
Public Overrides ReadOnly Property IsDraggingState As Boolean

Property Value

TypeDescription
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 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

DragObjectStart

DragObjectOver

DragObjectDrop

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace