# C1.Win.FlexGrid.C1FlexGridBase.AfterScroll

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_AfterScroll" data-uid="C1.Win.FlexGrid.C1FlexGridBase.AfterScroll" class="text-break">AfterScroll Event
</h1>
<div class="markdown level0 summary"><p>Fires after the grid scrolls.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
<h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_AfterScroll_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RangeEventHandler AfterScroll</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event AfterScroll As RangeEventHandler</code></pre>
</div>
<h5 class="returns">Returns</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="C1.Win.FlexGrid.RangeEventHandler.html">RangeEventHandler</a></td>
      <td>Fires after the grid scrolls.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_AfterScroll_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event allows you to prevent the user from scrolling the grid while an operation
is being performed on the current selection.</p>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_AfterScroll_examples"><strong>Examples</strong></h5>
<p>The code below prevents the grid from scrolling while the grid is in edit mode.</p>
<pre><code class="lang-csharp">void _flex_BeforeScroll(object sender, RangeEventArgs e)
{
    if (_flex.Editor != null)
        e.Cancel = true;
}</code></pre>

</div>
