# C1.Win.FlexGrid.GridRendererSystem.OnDrawCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_GridRendererSystem_OnDrawCell_" data-uid="C1.Win.FlexGrid.GridRendererSystem.OnDrawCell*">OnDrawCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_GridRendererSystem_OnDrawCell_" data-uid="C1.Win.FlexGrid.GridRendererSystem.OnDrawCell*"></a>
<h4 id="C1_Win_FlexGrid_GridRendererSystem_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_" data-uid="C1.Win.FlexGrid.GridRendererSystem.OnDrawCell(C1.Win.FlexGrid.C1FlexGridBase,C1.Win.FlexGrid.OwnerDrawCellEventArgs,C1.Win.FlexGrid.C1FlexGridRenderer.CellType)">OnDrawCell(C1FlexGridBase, OwnerDrawCellEventArgs, CellType)</h4>
<div class="markdown level1 summary"><p>Draws a single grid cell of a specific type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void OnDrawCell(C1FlexGridBase flex, OwnerDrawCellEventArgs e, C1FlexGridRenderer.CellType cellType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub OnDrawCell(flex As C1FlexGridBase, e As OwnerDrawCellEventArgs, cellType As C1FlexGridRenderer.CellType)</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.Win.FlexGrid.C1FlexGridBase.html">C1FlexGridBase</a></td>
      <td><span class="parametername">flex</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.html">C1FlexGridBase</a> that contains the cell being drawn.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.html">OwnerDrawCellEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.OwnerDrawCellEventArgs.html">OwnerDrawCellEventArgs</a> that provides information about the cell being drawn.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.html">C1FlexGridRenderer</a>.<a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.CellType.html">CellType</a></td>
      <td><span class="parametername">cellType</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.CellType.html">C1FlexGridRenderer.CellType</a> value that determines the type of cell being drawn.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Win.FlexGrid.C1FlexGridRenderer.OnDrawCell.html#C1_Win_FlexGrid_C1FlexGridRenderer_OnDrawCell_C1_Win_FlexGrid_C1FlexGridBase_C1_Win_FlexGrid_OwnerDrawCellEventArgs_C1_Win_FlexGrid_C1FlexGridRenderer_CellType_">C1FlexGridRenderer.OnDrawCell(C1FlexGridBase, OwnerDrawCellEventArgs, C1FlexGridRenderer.CellType)</a></div>
</div>
