# C1.WPF.Grid.C1GridControl.ChangeView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_C1GridControl_ChangeView_" data-uid="C1.WPF.Grid.C1GridControl.ChangeView*">ChangeView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_C1GridControl_ChangeView_" data-uid="C1.WPF.Grid.C1GridControl.ChangeView*"></a>
<h4 id="C1_WPF_Grid_C1GridControl_ChangeView_System_Nullable_System_Double__System_Nullable_System_Double__System_Nullable_System_Double__System_Boolean_" data-uid="C1.WPF.Grid.C1GridControl.ChangeView(System.Nullable{System.Double},System.Nullable{System.Double},System.Nullable{System.Double},System.Boolean)">ChangeView(double?, double?, double?, bool)</h4>
<div class="markdown level1 summary"><p>Changes the scroll and zoom of the grid to the specified part of the viewport.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ChangeView(double? horizontalOffset, double? verticalOffset, double? zoomScale = null, bool disableAnimation = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ChangeView(horizontalOffset As Double?, verticalOffset As Double?, Optional zoomScale As Double? = Nothing, Optional disableAnimation As Boolean = False)</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.double">double</a>?</td>
      <td><span class="parametername">horizontalOffset</span></td>
      <td><p>The horizontal offset.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</td>
      <td><span class="parametername">verticalOffset</span></td>
      <td><p>The vertical offset.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</td>
      <td><span class="parametername">zoomScale</span></td>
      <td><p>The zoom scale.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">disableAnimation</span></td>
      <td><p>if set to <code>true</code> disable animations.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
