# C1.Win.FlexGrid.C1FlexGridBase.BeforeDragColumn

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeDragColumn" data-uid="C1.Win.FlexGrid.C1FlexGridBase.BeforeDragColumn" class="text-break">BeforeDragColumn Event
</h1>
<div class="markdown level0 summary"><p>Fires when the user starts dragging a column.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
<h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeDragColumn_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event DragRowColEventHandler BeforeDragColumn</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event BeforeDragColumn As DragRowColEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.DragRowColEventHandler.html">DragRowColEventHandler</a></td>
      <td>Fires when the user starts dragging a column.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeDragColumn_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event only fires when the user drags a column using the mouse.</p>
<p>It is does not fire when a column is moved using the <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Move.html#C1_Win_FlexGrid_ColumnCollection_Move_System_Int32_System_Int32_">Move(int, int)</a> method.</p>
<p>You can prevent specific columns from being dragged by the user by setting their 
<a class="xref" href="C1.Win.FlexGrid.RowCol.AllowDragging.html#C1_Win_FlexGrid_RowCol_AllowDragging">AllowDragging</a> property to false.</p>
</div>
</div>
