# C1.Win.FlexGrid.RowCollection.InsertNode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_RowCollection_InsertNode_" data-uid="C1.Win.FlexGrid.RowCollection.InsertNode*">InsertNode Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_RowCollection_InsertNode_" data-uid="C1.Win.FlexGrid.RowCollection.InsertNode*"></a>
<h4 id="C1_Win_FlexGrid_RowCollection_InsertNode_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.RowCollection.InsertNode(System.Int32,System.Int32)">InsertNode(int, int)</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.FlexGrid.Node.html">Node</a> row to the row collection at a specified position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Node InsertNode(int index, int level)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function InsertNode(index As Integer, level As Integer) As Node</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The position where the new node row will be inserted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">level</span></td>
      <td><p>Outline level for the new node row.</p>
</td>
    </tr>
  </tbody>
</table>
<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.Node.html">Node</a></td>
      <td><p>A reference to the <a class="xref" href="C1.Win.FlexGrid.Node.html">Node</a> that was added to the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_RowCollection_InsertNode_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is especially useful when the grid is bound to a data source, because in this
case you can't change the value of the <a class="xref" href="C1.Win.FlexGrid.Row.IsNode.html#C1_Win_FlexGrid_Row_IsNode">IsNode</a> property. When the grid
is unbound, you can add rows and turn them into nodes later using the <a class="xref" href="C1.Win.FlexGrid.Row.IsNode.html#C1_Win_FlexGrid_Row_IsNode">IsNode</a> property.</p>
</div>
</div>
