FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / DragMode Property

In This Topic
    DragMode Property (C1FlexGridBase)
    In This Topic
    Gets or sets a value that determines if the user can drag data from the control.
    Syntax
    'Declaration
     
    
    Public Property DragMode As DragModeEnum
    public DragModeEnum DragMode {get; set;}
    Remarks

    This property allows you to use the control as a source for OLE drag-drop operations. If set to any of the automatic settings, the control provides the following services:

    1) Detect when the mouse is near the edge of a selected cell or range and display the OLE drag cursor.

    2) If the user clicks the mouse while the OLE drag cursor is displayed, initiate a drag operation with a data object containing the current selection.

    In manual mode, the programmer is responsible for starting drag-drop operations using the System.Windows.Forms.Control.DoDragDrop(System.Object,System.Windows.Forms.DragDropEffects) method.

    See Also