# C1.Win.FlexGrid.C1FlexGridBase.DropMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_DropMode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DropMode*">DropMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_DropMode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DropMode*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_DropMode" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DropMode">DropMode</h4>
<div class="markdown level1 summary"><p>Gets or sets a value that determines if the control can accept data that the user drags onto it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DropModeEnum DropMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property DropMode As DropModeEnum</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_DropMode_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property allows you to use the control as a target for OLE drag-drop operations.</p>
<p>If set to <a class="xref" href="C1.Win.FlexGrid.DropModeEnum.html#C1_Win_FlexGrid_DropModeEnum_None">None</a> (the default value), the control does not act as a drop target.</p>
<p>If set to <a class="xref" href="C1.Win.FlexGrid.DropModeEnum.html#C1_Win_FlexGrid_DropModeEnum_Manual">Manual</a>, the control fires the standard drag-drop events 
and the programmer is responsible for handling them. The main events involved are <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.dragover">DragOver</a> and 
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.dragdrop">DragDrop</a>. These events are provided by the standard System.Windows.Forms.Control object.</p>
<p>If set to <a class="xref" href="C1.Win.FlexGrid.DropModeEnum.html#C1_Win_FlexGrid_DropModeEnum_Automatic">Automatic</a>, the control handles the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.dragover">DragOver</a> and
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.dragdrop">DragDrop</a> events automatically by performing the following actions:</p>
<p>1) Query the data object for data in text or filename formats.</p>
<p>2) Scroll if the user drags an object near the edges of the control.</p>
<p>3) Paste the contents of the data object when the user drops valid data on the control.</p>
<p>Note: This property replaces and extends the <span class="xref">C1.Win.FlexGrid.C1FlexGridBase.AllowDrop</span> property provided by the 
base <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a> object.</p>
</div>
</div>
