# C1.Win.FlexGrid.C1FlexGridBase.KeyDownEdit

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_KeyDownEdit" data-uid="C1.Win.FlexGrid.C1FlexGridBase.KeyDownEdit" class="text-break">KeyDownEdit Event
</h1>
<div class="markdown level0 summary"><p>Fires in edit mode, when the user presses a key.</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_KeyDownEdit_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event KeyEditEventHandler KeyDownEdit</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event KeyDownEdit As KeyEditEventHandler</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.KeyEditEventHandler.html">KeyEditEventHandler</a></td>
      <td>Fires in edit mode, when the user presses a key.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_KeyDownEdit_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>The <b>KeyDownEdit</b> event corresponds to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.keydown">KeyDown</a> event, 
except it fires when the grid is in edit mode (in this case, the control that received the 
key is the editor, not the grid itself).</p>
<p>The editor has three modes: text, drop-down combo, or drop-down list. The mode used is 
determined by the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ComboList.html#C1_Win_FlexGrid_C1FlexGridBase_ComboList">ComboList</a> properties in the grid and column objects.</p>
<p>While editing with the text editor or with a drop-down combo, you may set or retrieve 
the contents of the editor by retrieving the editor control with the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Editor.html#C1_Win_FlexGrid_C1FlexGridBase_Editor">Editor</a> 
property and casting it to the proper type.</p>
</div>
</div>
