# C1.Win.FlexGrid.C1FlexGridBase.KeyPressEdit

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_KeyPressEdit" data-uid="C1.Win.FlexGrid.C1FlexGridBase.KeyPressEdit" class="text-break">KeyPressEdit Event
</h1>
<div class="markdown level0 summary"><p>Fires in edit mode, when the user presses a character 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_KeyPressEdit_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event KeyPressEditEventHandler KeyPressEdit</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event KeyPressEdit As KeyPressEditEventHandler</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.KeyPressEditEventHandler.html">KeyPressEditEventHandler</a></td>
      <td>Fires in edit mode, when the user presses a character key.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_KeyPressEdit_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>The <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.KeyPressEdit.html">KeyPressEdit</a> event corresponds to the 
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.keypress">KeyPress</a> event, except it fires when the 
grid is in edit mode (in this case, the control that receives 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>
