# C1.LiveLinq.LiveViews.ViewRowCollection.CreateRow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_LiveViews_ViewRowCollection_CreateRow_" data-uid="C1.LiveLinq.LiveViews.ViewRowCollection.CreateRow*">CreateRow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_LiveViews_ViewRowCollection_CreateRow_" data-uid="C1.LiveLinq.LiveViews.ViewRowCollection.CreateRow*"></a>
<h4 id="C1_LiveLinq_LiveViews_ViewRowCollection_CreateRow" data-uid="C1.LiveLinq.LiveViews.ViewRowCollection.CreateRow">CreateRow()</h4>
<div class="markdown level1 summary"><p>Creates a new item directly in the view, and a view row associated with it, and adds it to the <a class="xref" href="C1.LiveLinq.LiveViews.ViewRowCollection.html">ViewRowCollection</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ViewRow CreateRow()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateRow() As ViewRow</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.LiveLinq.LiveViews.ViewRow.html">ViewRow</a></td>
      <td><p>The newly created view row.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_LiveLinq_LiveViews_ViewRowCollection_CreateRow_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Creating a new row is an update operation on the view. As any other update operation performed directly on the
view (as opposed to on the base data collection on which that view depends,
see <a class="xref" href="C1.LiveLinq.LiveViewExtensions.AsUpdatable.html#C1_LiveLinq_LiveViewExtensions_AsUpdatable__1_C1_LiveLinq_LiveViews_View___0__">AsUpdatable&lt;T&gt;(View&lt;T&gt;)</a>), it is allowed only if the view
is not read-only (see <a class="xref" href="C1.LiveLinq.LiveViews.View.IsReadOnly.html#C1_LiveLinq_LiveViews_View_IsReadOnly">IsReadOnly</a>), and it results in updating (in this case, adding a new item to)
one of the view's base data collections.</p>
</div>
</div>
