# C1.WPF.FlexGrid.C1FlexGrid.ChildItemsPath

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_C1FlexGrid_ChildItemsPath_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.ChildItemsPath*">ChildItemsPath Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_C1FlexGrid_ChildItemsPath_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.ChildItemsPath*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_ChildItemsPath" data-uid="C1.WPF.FlexGrid.C1FlexGrid.ChildItemsPath">ChildItemsPath</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of the property used to generate child rows.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ChildItemsPath { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ChildItemsPath As String</code></pre>
</div>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_ChildItemsPath_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;This property allows you to use the FlexGrid as a bound &lt;b&gt;TreeView&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;To use it, the data source must contain items that have properties which are 
</code></pre>
<p>collections of the same type.</p>
</div>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_ChildItemsPath_examples">Examples</h5>
<pre><code>&lt;p&gt;For example, assuming you have a Person class with a Children property that 
</code></pre>
<p>contains a list of Person objects, and you want to display the data as a tree.</p>
<p>You could accomplish that using the following XAML:</p>
<pre><code>&lt;pre&gt;&lt;code class=&quot;lang-csharp&quot;&gt;&lt;c1:C1FlexGrid 
    AutoGenerateColumns=&quot;False&quot; 
    ChildItemsPath=&quot;Children&quot; &gt;
    &lt;c1:C1FlexGrid.Columns&gt;
        &lt;c1:Column Header=&quot;Name&quot; Binding=&quot;{Binding Name}&quot; Width=&quot;*&quot; /&gt;
        &lt;c1:Column Header=&quot;Children&quot; Binding=&quot;{Binding Children.Count}&quot; /&gt;
    &lt;/c1:C1FlexGrid.Columns&gt;
&lt;/c1:C1FlexGrid&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To display the data as a tree, the grid creates &lt;xref href=&quot;C1.WPF.FlexGrid.GroupRow&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; 
</code></pre>
<p>objects for every item in the collection.</p>

</div>
