# C1.Win.FlexGrid.C1FlexGridBase.AfterAddRow

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_AfterAddRow" data-uid="C1.Win.FlexGrid.C1FlexGridBase.AfterAddRow" class="text-break">AfterAddRow Event
</h1>
<div class="markdown level0 summary"><p>Fires after a new row is added by the user.</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_AfterAddRow_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RowColEventHandler AfterAddRow</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event AfterAddRow 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 after a new row is added by the user.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_AfterAddRow_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event only fires when <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.AllowAddNew.html#C1_Win_FlexGrid_C1FlexGridBase_AllowAddNew">AllowAddNew</a> property is set to true 
and the user creates a new empty row by moving the cursor into the last row on the 
grid.</p>
<p>It does not fire when a new row is added to the grid programmatically or 
through the grid's data source.</p>
<p>You can use this event to initialize the new rows.</p>
<p>When a new row is created this way, it is initially empty, and the user may 
cancel the row by moving the cursor out of the new row before making any edits. 
In this case, the grid fires the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.CancelAddRow.html">CancelAddRow</a> event and the new 
(empty) row is removed.</p>
</div>
</div>
