# FarPoint.Web.Spread.SheetView.GetChildView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_SheetView_GetChildView_" data-uid="FarPoint.Web.Spread.SheetView.GetChildView*">GetChildView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_SheetView_GetChildView_" data-uid="FarPoint.Web.Spread.SheetView.GetChildView*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_GetChildView_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.SheetView.GetChildView(System.Int32,System.Int32)">GetChildView(int, int)</h4>
<div class="markdown level1 summary"><p>Gets a child sheet in a hierarchical display for the specified row and the specified relation index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual SheetView GetChildView(int row, int relationIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function GetChildView(row As Integer, relationIndex As Integer) As SheetView</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">row</span></td>
      <td><p>Row whose child sheet is to be created</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">relationIndex</span></td>
      <td><p>Index to the data relation collection</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="FarPoint.Web.Spread.SheetView.html">SheetView</a></td>
      <td><p>SheetView object</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></td>
      <td><p>Specified sheet does not support a child view</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Specified row is not valid; row index must be
between 0 and the number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Specified relation is not valid; relation index must be<br>
between 0 and the number of child relations in the collection</p>
</td>
    </tr>
  </tbody>
</table>
</div>
