# C1.Win.List.ListBase.C1ListBase.AlternatingRows

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_ListBase_C1ListBase_AlternatingRows_" data-uid="C1.Win.List.ListBase.C1ListBase.AlternatingRows*">AlternatingRows Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_ListBase_C1ListBase_AlternatingRows_" data-uid="C1.Win.List.ListBase.C1ListBase.AlternatingRows*"></a>
<h4 id="C1_Win_List_ListBase_C1ListBase_AlternatingRows" data-uid="C1.Win.List.ListBase.C1ListBase.AlternatingRows">AlternatingRows</h4>
<div class="markdown level1 summary"><p>Determines if a list or split displays odd-numbered rows in one style and even-numbered rows in another.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Layout]
public bool AlternatingRows { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Layout&gt;
Public Property AlternatingRows As Boolean</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>The default value is false.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_List_ListBase_C1ListBase_AlternatingRows_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
If True, the OddRowStyle and EvenRowStyle properties control the appearance of rows within the specified object.
</p>
<p>
If False (the default), the Style property controls the display of rows within the specified object.
</p>
<p>
At design time, you can change the colors and fonts used to render odd (even) rows by modifying the built-in OddRow (EvenRow) style using the Styles property page.
</p>
<p>
At run time, you can change the colors and fonts used to render odd (even) rows by modifying the Style object returned by the OddRowStyle (EvenRowStyle) property.
</p>
</div>
</div>
