# C1.Win.FlexGrid.C1FlexGridBase.UpdateScrollBarAnnotations

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_UpdateScrollBarAnnotations_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.UpdateScrollBarAnnotations*">UpdateScrollBarAnnotations Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_UpdateScrollBarAnnotations_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.UpdateScrollBarAnnotations*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_UpdateScrollBarAnnotations_System_Boolean_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.UpdateScrollBarAnnotations(System.Boolean,System.Boolean)">UpdateScrollBarAnnotations(bool, bool)</h4>
<div class="markdown level1 summary"><p>Updates scrollbar annotations.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UpdateScrollBarAnnotations(bool updateErrors = true, bool updateHighlighted = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UpdateScrollBarAnnotations(Optional updateErrors As Boolean = True, Optional updateHighlighted As Boolean = True)</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.boolean">bool</a></td>
      <td><span class="parametername">updateErrors</span></td>
      <td><p>Set to false if you don't want to update error annotations. For optimization.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">updateHighlighted</span></td>
      <td><p>Set to false if you don't want to update highlighted annotations. For optimization.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_UpdateScrollBarAnnotations_System_Boolean_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Call this method at any time to update all annotation types.</p>
<p>
For example, if you need to update custom annotations and
other annotation types are disabled, subscribe to <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ScrollBarAnnotationsUpdating.html">ScrollBarAnnotationsUpdating</a> or <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ScrollBarAnnotationsUpdated.html">ScrollBarAnnotationsUpdated</a> event then call
this method.
</p>
</div>
</div>
