# C1.Win.FlexGrid.C1FlexGridBase.StartEdit

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_StartEdit" data-uid="C1.Win.FlexGrid.C1FlexGridBase.StartEdit" class="text-break">StartEdit Event
</h1>
<div class="markdown level0 summary"><p>Fires before the control enters edit mode.</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_StartEdit_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RowColEventHandler StartEdit</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event StartEdit As RowColEventHandler</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.RowColEventHandler.html">RowColEventHandler</a></td>
      <td>Fires before the control enters edit mode.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_StartEdit_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event fires before the control enters edit mode. It allows you to prevent 
editing by setting the <b>Cancel</b> parameter to true, or to supply a list of choices 
for a combo list using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ComboList.html#C1_Win_FlexGrid_C1FlexGridBase_ComboList">ComboList</a> property, or an edit mask using the 
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.EditMask.html#C1_Win_FlexGrid_C1FlexGridBase_EditMask">EditMask</a> property.</p>
<p>If the choices or the mask are the same for a whole column, you may set them more
efficiently using the <a class="xref" href="C1.Win.FlexGrid.RowCol.ComboList.html#C1_Win_FlexGrid_RowCol_ComboList">ComboList</a> and <a class="xref" href="C1.Win.FlexGrid.RowCol.EditMask.html#C1_Win_FlexGrid_RowCol_EditMask">EditMask</a>
properties for the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object. In this case, there's no need to handle 
the <b>StartEdit</b> event at all.</p>
<p>The grid also exposes a <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.BeforeEdit.html">BeforeEdit</a> event. The difference between 
the two is that <b>BeforeEdit</b> fires when the grid paints the cell that has the focus
(so it can determine whether the cell has a drop-down button). <b>BeforeEdit</b> fires 
more often than <b>StartEdit</b>, and does not always indicate that the grid is actually 
entering edit mode.</p>
</div>
</div>
