# C1.WPF.FlexGrid.C1FlexGrid.CellFactory

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_C1FlexGrid_CellFactory_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.CellFactory*">CellFactory Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_C1FlexGrid_CellFactory_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.CellFactory*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_CellFactory" data-uid="C1.WPF.FlexGrid.C1FlexGrid.CellFactory">CellFactory</h4>
<div class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.ICellFactory.html">ICellFactory</a> class responsible for creating
and destroying <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> objects used to represent grid cells.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ICellFactory CellFactory { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property CellFactory As ICellFactory</code></pre>
</div>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_CellFactory_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting this property to null causes the grid to use the default cell factory
implemented by the <a class="xref" href="C1.WPF.FlexGrid.C1FlexGrid.CellFactory.html#C1_WPF_FlexGrid_C1FlexGrid_CellFactory">CellFactory</a> class.</p>
</div>
</div>
