# C1.WPF.FlexGrid.ICellFactory.DisposeCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_ICellFactory_DisposeCell_" data-uid="C1.WPF.FlexGrid.ICellFactory.DisposeCell*">DisposeCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_ICellFactory_DisposeCell_" data-uid="C1.WPF.FlexGrid.ICellFactory.DisposeCell*"></a>
<h4 id="C1_WPF_FlexGrid_ICellFactory_DisposeCell_C1_WPF_FlexGrid_C1FlexGrid_C1_WPF_FlexGrid_CellType_System_Windows_FrameworkElement_" data-uid="C1.WPF.FlexGrid.ICellFactory.DisposeCell(C1.WPF.FlexGrid.C1FlexGrid,C1.WPF.FlexGrid.CellType,System.Windows.FrameworkElement)">DisposeCell(C1FlexGrid, CellType, FrameworkElement)</h4>
<div class="markdown level1 summary"><p>Disposes of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> when its associated cell is scrolled
out of view.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void DisposeCell(C1FlexGrid grid, CellType cellType, FrameworkElement cell)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub DisposeCell(grid As C1FlexGrid, cellType As CellType, cell As FrameworkElement)</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="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a></td>
      <td><span class="parametername">grid</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a> that owns the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.CellType.html">CellType</a></td>
      <td><span class="parametername">cellType</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.CellType.html">CellType</a> that specifies the type of cell to be created.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">cell</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> to be disposed of.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
