# C1.Win.FlexGrid.C1FlexGridBase.BeforeEdit

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeEdit" data-uid="C1.Win.FlexGrid.C1FlexGridBase.BeforeEdit" class="text-break">BeforeEdit Event
</h1>
<div class="markdown level0 summary"><p>Fires before the grid enters edit mode, and also when the cell that has the
focus needs to be painted.</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_BeforeEdit_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RowColEventHandler BeforeEdit</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event BeforeEdit 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 grid enters edit mode, and also when the cell that has the focus needs to be painted.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforeEdit_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event doesn't fire only when the grid is about to enter edit mode.</p>
<p>It also fires while painting cells, in order to support drawing the editor's
drop-down buttons.</p>
<p>The <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.StartEdit.html">StartEdit</a> event fires only when the grid is about to enter
edit mode.</p>
</div>
</div>
