FlexGrid for WinForms
DragMode Property



Gets or sets a value that determines if the user can drag data from the control.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets a value that determines if the user can drag data from the control.")>
<DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
Public Property DragMode As DragModeEnum
'Usage
 
Dim instance As C1FlexGridBase
Dim value As DragModeEnum
 
instance.DragMode = value
 
value = instance.DragMode
[C1Description("Gets or sets a value that determines if the user can drag data from the control.")]
[DefaultValue()]
[C1Category("Behavior")]
public DragModeEnum DragMode {get; set;}
[C1Description("Gets or sets a value that determines if the user can drag data from the control.")]
[DefaultValue()]
[C1Category("Behavior")]
public:
property DragModeEnum DragMode {
   DragModeEnum get();
   void set (    DragModeEnum value);
}
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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback