# C1.Win.FlexGrid.C1FlexGrid.MoveSelection

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGrid_MoveSelection_" data-uid="C1.Win.FlexGrid.C1FlexGrid.MoveSelection*">MoveSelection Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGrid_MoveSelection_" data-uid="C1.Win.FlexGrid.C1FlexGrid.MoveSelection*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGrid_MoveSelection_C1_Win_FlexGrid_MoveCursorEnum_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGrid.MoveSelection(C1.Win.FlexGrid.MoveCursorEnum,System.Boolean)">MoveSelection(MoveCursorEnum, bool)</h4>
<div class="markdown level1 summary"><p>Moves or extends the current selection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void MoveSelection(MoveCursorEnum move, bool extend)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub MoveSelection(move As MoveCursorEnum, extend As Boolean)</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><span class="xref">MoveCursorEnum</span></td>
      <td><span class="parametername">move</span></td>
      <td><p><span class="xref">C1.Win.FlexGrid.MoveCursorEnum</span> value that specifies the type of cursor movement.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">extend</span></td>
      <td><p>Whether to extend the current selection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.MoveSelection.html#C1_Win_FlexGrid_C1FlexGridBase_MoveSelection_C1_Win_FlexGrid_MoveCursorEnum_System_Boolean_">C1FlexGridBase.MoveSelection(MoveCursorEnum, bool)</a></div>
<h5 id="C1_Win_FlexGrid_C1FlexGrid_MoveSelection_C1_Win_FlexGrid_MoveCursorEnum_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is for internal use. It allows inherited classes to customize the grid appearance.</p>
</div>
</div>
