# C1.WPF.Grid.FlexGridDetailProvider-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Grid_FlexGridDetailProvider_1" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1" class="text-break">FlexGridDetailProvider&lt;TItem&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Implements detail rows for <a class="xref" href="C1.WPF.Grid.FlexGrid.html">FlexGrid</a> control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">FlexGridDetailProvider&lt;TItem&gt;</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider.html">FlexGridDetailProvider</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><span class="xref">IDependencyObject</span></div>
  </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_FlexGridDetailProvider_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FlexGridDetailProvider&lt;TItem&gt; : C1Behavior&lt;FlexGrid&gt;, IDependencyObject where TItem : class</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FlexGridDetailProvider(Of TItem As Class)
    Inherits C1Behavior(Of FlexGrid)
    Implements IDependencyObject</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TItem</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="C1_WPF_Grid_FlexGridDetailProvider_1_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>To add detail rows to a <a class="xref" href="C1.WPF.Grid.FlexGrid.html">FlexGrid</a> control, create an instance of a <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.html">FlexGridDetailProvider&lt;TItem&gt;</a> and add it to the Behaviors property collection, then set RowDetailTemplate or handle <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailCellCreating.html">DetailCellCreating</a> to provide the details.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1__ctor" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.#ctor">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.-ctor.html#C1_WPF_Grid_FlexGridDetailProvider_1__ctor">FlexGridDetailProvider()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailCollapsedIconTemplateProperty" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailCollapsedIconTemplateProperty">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailCollapsedIconTemplateProperty.html">DetailCollapsedIconTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailCollapsedIconTemplate.html#C1_WPF_Grid_FlexGridDetailProvider_1_DetailCollapsedIconTemplate">DetailCollapsedIconTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailExpandedIconTemplateProperty" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailExpandedIconTemplateProperty">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailExpandedIconTemplateProperty.html">DetailExpandedIconTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailExpandedIconTemplate.html#C1_WPF_Grid_FlexGridDetailProvider_1_DetailExpandedIconTemplate">DetailExpandedIconTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailVisibilityModeProperty" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailVisibilityModeProperty">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailVisibilityModeProperty.html">DetailVisibilityModeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailVisibilityMode.html#C1_WPF_Grid_FlexGridDetailProvider_1_DetailVisibilityMode">DetailVisibilityMode</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_HeightProperty" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.HeightProperty">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.HeightProperty.html">HeightProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.Height.html#C1_WPF_Grid_FlexGridDetailProvider_1_Height">Height</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_RowDetailTemplateProperty" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.RowDetailTemplateProperty">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.RowDetailTemplateProperty.html">RowDetailTemplateProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.RowDetailTemplate.html#C1_WPF_Grid_FlexGridDetailProvider_1_RowDetailTemplate">RowDetailTemplate</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_ShowExpandButtonProperty" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.ShowExpandButtonProperty">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.ShowExpandButtonProperty.html">ShowExpandButtonProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.ShowExpandButton.html#C1_WPF_Grid_FlexGridDetailProvider_1_ShowExpandButton">ShowExpandButton</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailCollapsedIconTemplate" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailCollapsedIconTemplate">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailCollapsedIconTemplate.html#C1_WPF_Grid_FlexGridDetailProvider_1_DetailCollapsedIconTemplate">DetailCollapsedIconTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template used to create the icon displayed when the detail row is collapsed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailExpandedIconTemplate" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailExpandedIconTemplate">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailExpandedIconTemplate.html#C1_WPF_Grid_FlexGridDetailProvider_1_DetailExpandedIconTemplate">DetailExpandedIconTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template used to create the icon displayed when the detail row is expanded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailVisibilityMode" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailVisibilityMode">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailVisibilityMode.html#C1_WPF_Grid_FlexGridDetailProvider_1_DetailVisibilityMode">DetailVisibilityMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the detail visibility mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_Height" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.Height">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.Height.html#C1_WPF_Grid_FlexGridDetailProvider_1_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of the details.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_RowDetailTemplate" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.RowDetailTemplate">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.RowDetailTemplate.html#C1_WPF_Grid_FlexGridDetailProvider_1_RowDetailTemplate">RowDetailTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the template used for the row detail.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_ShowExpandButton" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.ShowExpandButton">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.ShowExpandButton.html#C1_WPF_Grid_FlexGridDetailProvider_1_ShowExpandButton">ShowExpandButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to show the expand/collapse buttons in the row headers.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_HideDetailAsync_System_Int32_" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.HideDetailAsync(System.Int32)">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.HideDetailAsync.html#C1_WPF_Grid_FlexGridDetailProvider_1_HideDetailAsync_System_Int32_">HideDetailAsync(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Hides the detail row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_IsDetailVisible_System_Int32_" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.IsDetailVisible(System.Int32)">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.IsDetailVisible.html#C1_WPF_Grid_FlexGridDetailProvider_1_IsDetailVisible_System_Int32_">IsDetailVisible(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the detail row is visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_OnAttachedTo_C1_WPF_Grid_FlexGrid_" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.OnAttachedTo(C1.WPF.Grid.FlexGrid)">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.OnAttachedTo.html#C1_WPF_Grid_FlexGridDetailProvider_1_OnAttachedTo_C1_WPF_Grid_FlexGrid_">OnAttachedTo(FlexGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the behavior is attached to the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_OnDetachingFrom_C1_WPF_Grid_FlexGrid_" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.OnDetachingFrom(C1.WPF.Grid.FlexGrid)">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.OnDetachingFrom.html#C1_WPF_Grid_FlexGridDetailProvider_1_OnDetachingFrom_C1_WPF_Grid_FlexGrid_">OnDetachingFrom(FlexGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the behavior is detaching from the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_OnDetailCellCreating_C1_WPF_Grid_GridDetailCellCreatingEventArgs_" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.OnDetailCellCreating(C1.WPF.Grid.GridDetailCellCreatingEventArgs)">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.OnDetailCellCreating.html#C1_WPF_Grid_FlexGridDetailProvider_1_OnDetailCellCreating_C1_WPF_Grid_GridDetailCellCreatingEventArgs_">OnDetailCellCreating(GridDetailCellCreatingEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">DetailCellCreating</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_OnDetailLoading_C1_WPF_Grid_GridDetailLoadingEventArgs__0__" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.OnDetailLoading(C1.WPF.Grid.GridDetailLoadingEventArgs{`0})">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.OnDetailLoading.html#C1_WPF_Grid_FlexGridDetailProvider_1_OnDetailLoading_C1_WPF_Grid_GridDetailLoadingEventArgs__0__">OnDetailLoading(GridDetailLoadingEventArgs&lt;TItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">DetailLoading</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_ShowDetailAsync_System_Int32_" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.ShowDetailAsync(System.Int32)">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.ShowDetailAsync.html#C1_WPF_Grid_FlexGridDetailProvider_1_ShowDetailAsync_System_Int32_">ShowDetailAsync(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Shows the detail row.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailCellCreating" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailCellCreating">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailCellCreating.html">DetailCellCreating</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the detail cell is being created.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_FlexGridDetailProvider_1_DetailLoading" data-uid="C1.WPF.Grid.FlexGridDetailProvider`1.DetailLoading">
          <a class="xref" href="C1.WPF.Grid.FlexGridDetailProvider-1.DetailLoading.html">DetailLoading</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the detail cell is being created.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
