# C1.Win.FlexGrid.C1FlexGridBase.DrawRow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawRow*">DrawRow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawRow*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_System_Windows_Forms_PaintEventArgs_System_Int32_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawRow(System.Windows.Forms.PaintEventArgs,System.Int32)">DrawRow(PaintEventArgs, int)</h4>
<div class="markdown level1 summary"><p>Draws a grid row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void DrawRow(PaintEventArgs e, int row)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub DrawRow(e As PaintEventArgs, row As Integer)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.painteventargs">PaintEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.painteventargs">PaintEventArgs</a> that contains a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>
object where the row will be drawn.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Index of the row to draw.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_System_Windows_Forms_PaintEventArgs_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is for internal use. It allows inherited classes to customize the grid appearance.</p>
</div>


<a id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawRow*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_System_Windows_Forms_PaintEventArgs_System_Int32_C1_Win_FlexGrid_DrawColorMode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.DrawRow(System.Windows.Forms.PaintEventArgs,System.Int32,C1.Win.FlexGrid.DrawColorMode)">DrawRow(PaintEventArgs, int, DrawColorMode)</h4>
<div class="markdown level1 summary"><p>Draws a grid row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void DrawRow(PaintEventArgs e, int row, DrawColorMode colorMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub DrawRow(e As PaintEventArgs, row As Integer, colorMode As DrawColorMode)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.painteventargs">PaintEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.painteventargs">PaintEventArgs</a> that contains a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a>
object where the row will be drawn.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Index of the row to draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.DrawColorMode.html">DrawColorMode</a></td>
      <td><span class="parametername">colorMode</span></td>
      <td><p>Drawing color mode.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_DrawRow_System_Windows_Forms_PaintEventArgs_System_Int32_C1_Win_FlexGrid_DrawColorMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is for internal use. It allows inherited classes to customize the grid appearance.</p>
</div>
</div>
