# C1.LiveLinq.LiveViews.ViewRowCollection.ViewRowAdding

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_LiveLinq_LiveViews_ViewRowCollection_ViewRowAdding" data-uid="C1.LiveLinq.LiveViews.ViewRowCollection.ViewRowAdding" class="text-break">ViewRowAdding Event
</h1>
<div class="markdown level0 summary"><p>Occurs after a new view row is created so it can be populated with default values.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.LiveLinq.LiveViews.html">C1.LiveLinq.LiveViews</a></h6>
<h6><strong>Assembly</strong>: C1.LiveLinq.4.8.dll</h6>
<h5 id="C1_LiveLinq_LiveViews_ViewRowCollection_ViewRowAdding_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;ViewRowAddingEventArgs&gt; ViewRowAdding</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event ViewRowAdding As EventHandler(Of ViewRowAddingEventArgs)</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-1">EventHandler</a>&lt;<a class="xref" href="C1.LiveLinq.LiveViews.ViewRowAddingEventArgs.html">ViewRowAddingEventArgs</a>&gt;</td>
      <td>Occurs after a new view row is created so it can be populated with default values.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_LiveLinq_LiveViews_ViewRowCollection_ViewRowAdding_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event occurs only if the new row is created directly in the view, as a result of a view update operation,
that is, with <a class="xref" href="C1.LiveLinq.LiveViews.ViewRowCollection.CreateRow.html#C1_LiveLinq_LiveViews_ViewRowCollection_CreateRow">CreateRow()</a> or via data binding. It does not occur when new rows appear in the view
as a result of view maintenance on changes made to the view's source data collections.</p>
<p>This event occurs immediately on creating the new row, before the method creating it returns,
before the row enters edit mode (see <a class="xref" href="C1.LiveLinq.LiveViews.ViewRowState.html">ViewRowState</a> about edit mode).</p>
</div>
</div>
