GridView.IsDraggingState Property
Tests whether the end-user is currently dragging a column header.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
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 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.
- GridControl.MainView - returns the top most View in a grid;
- GridControl.FocusedView - returns the focused View;
- GridControl.DefaultView - returns the currently maximized View;
- the sender parameter of View specific events;
- GridView.GetDetailView - returns a detail clone View for a specific master row.