# C1.WPF.Grid.GridTreeExpandMode

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_WPF_Grid_GridTreeExpandMode" data-uid="C1.WPF.Grid.GridTreeExpandMode" class="text-break">GridTreeExpandMode Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies options available for customizing the mode the tree is created when setting <a class="xref" href="C1.WPF.Grid.FlexGrid.ChildItemsPath.html#C1_WPF_Grid_FlexGrid_ChildItemsPath">ChildItemsPath</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Grid.html">C1.WPF.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Grid.dll</h6>
  <h5 id="C1_WPF_Grid_GridTreeExpandMode_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Flags]
public enum GridTreeExpandMode</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Flags&gt;
Public Enum GridTreeExpandMode</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_WPF_Grid_GridTreeExpandMode_Collapsed">Collapsed</td>
        <td><p>The whole tree structure will be created as the source is set but all the rows will be collapsed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridTreeExpandMode_Expanded">Expanded</td>
        <td><p>The whole tree structure will be created as the source is set and all the rows will be expanded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridTreeExpandMode_OnDemand">OnDemand</td>
        <td><p>The rows belonging to the children items will be created on demand as the parent get expanded.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
