# C1.Win.List.ListBase.C1ListBase.ScrollCtl

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_ListBase_C1ListBase_ScrollCtl_" data-uid="C1.Win.List.ListBase.C1ListBase.ScrollCtl*">ScrollCtl Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_ListBase_C1ListBase_ScrollCtl_" data-uid="C1.Win.List.ListBase.C1ListBase.ScrollCtl*"></a>
<h4 id="C1_Win_List_ListBase_C1ListBase_ScrollCtl_System_Int32_System_Int32_" data-uid="C1.Win.List.ListBase.C1ListBase.ScrollCtl(System.Int32,System.Int32)">ScrollCtl(int, int)</h4>
<div class="markdown level1 summary"><p>Scrolls the list data area by the specified number of rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ScrollCtl(int cols, int rows)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ScrollCtl(cols As Integer, rows 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.int32">int</a></td>
      <td><span class="parametername">cols</span></td>
      <td><p>The number of rows to scroll.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rows</span></td>
      <td><p>The number of columns to scroll.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_List_ListBase_C1ListBase_ScrollCtl_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Positive offsets scroll right and down. Negative offsets scroll left and up. Column offsets that are out of range cause a trappable error. Row offsets that are out of range scroll to the beginning or end of the database. 
</p>
<p>
The same effect can be achieved by setting the <a class="xref" href="C1.Win.List.ListBase.C1ListBase.LeftCol.html#C1_Win_List_ListBase_C1ListBase_LeftCol">LeftCol</a> and <a class="xref" href="C1.Win.List.ListBase.C1ListBase.TopIndex.html#C1_Win_List_ListBase_C1ListBase_TopIndex">TopIndex</a> properties, but these must be set independently. 
</p>
</div>
</div>
