# C1.Win.FlexGrid.C1FlexGridBase.DragMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_DragMode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DragMode*">DragMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_DragMode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DragMode*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_DragMode" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DragMode">DragMode</h4>
<div class="markdown level1 summary"><p>Gets or sets a value that determines if the user can drag data from the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DragModeEnum DragMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property DragMode As DragModeEnum</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_DragMode_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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:</p>
<p>1) Detect when the mouse is near the edge of a selected cell or range and display the 
OLE drag cursor.</p>
<p>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.</p>
<p>In manual mode, the programmer is responsible for starting drag-drop operations using 
the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.dodragdrop#system-windows-forms-control-dodragdrop(system-object-system-windows-forms-dragdropeffects)">DoDragDrop(object, DragDropEffects)</a> method.</p>
</div>
</div>
