# C1.Win.FlexGrid.C1FlexGridBase.ChangeEdit

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_ChangeEdit" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ChangeEdit" class="text-break">ChangeEdit Event
</h1>
<div class="markdown level0 summary"><p>Fires in edit mode, after the contents of the editor change.</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_ChangeEdit_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler ChangeEdit</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event ChangeEdit As EventHandler</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="https://learn.microsoft.com/dotnet/api/system.eventhandler">EventHandler</a></td>
      <td>Fires in edit mode, after the contents of the editor change.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_ChangeEdit_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event fires while the grid is in edit mode and the contents of the editor change.
This may be caused by the user typing into the editor or selecting a new item in a 
drop down list.</p>
<p>When this event fires, the new editor content has not been applied to the grid cell yet.
You may check the new content using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Editor.html#C1_Win_FlexGrid_C1FlexGridBase_Editor">Editor</a> property.</p>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_ChangeEdit_examples"><strong>Examples</strong></h5>
<p>The code below shows a message when the text being edited contains more than 10 characters:</p>
<pre><code class="lang-csharp">void _flex_ChangeEdit(object sender, EventArgs e)
{
  // get text in editor
  string text = _flex.Editor.Text;

  // show message if it's too long
  statusStrip1.Text = text.Length &gt; 10
    ? "This text seems too long..."
    : "This text looks OK...";
}</code></pre>

</div>
