# C1.WPF.Grid.C1GridControl.Select

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_C1GridControl_Select_" data-uid="C1.WPF.Grid.C1GridControl.Select*">Select Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_C1GridControl_Select_" data-uid="C1.WPF.Grid.C1GridControl.Select*"></a>
<h4 id="C1_WPF_Grid_C1GridControl_Select_C1_WPF_Grid_GridControlRange_System_Boolean_System_Boolean_" data-uid="C1.WPF.Grid.C1GridControl.Select(C1.WPF.Grid.GridControlRange,System.Boolean,System.Boolean)">Select(GridControlRange, bool, bool)</h4>
<div class="markdown level1 summary"><p>Selects a given cell and optionally scrolls it into view.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Select(GridControlRange range, bool scrollIntoView, bool hideSelectionAdorners = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](range As GridControlRange, scrollIntoView As Boolean, Optional hideSelectionAdorners 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="C1.WPF.Grid.GridControlRange.html">GridControlRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p><a class="xref" href="C1.WPF.Grid.GridControlRange.html">GridControlRange</a> to select.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">scrollIntoView</span></td>
      <td><p>Whether to scroll the new selection into view.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">hideSelectionAdorners</span></td>
      <td><p>Whether the selection adorners are hidden.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Grid_C1GridControl_Select_" data-uid="C1.WPF.Grid.C1GridControl.Select*"></a>
<h4 id="C1_WPF_Grid_C1GridControl_Select_System_Collections_Generic_IEnumerable_C1_WPF_Grid_GridControlRange__System_Boolean_System_Boolean_" data-uid="C1.WPF.Grid.C1GridControl.Select(System.Collections.Generic.IEnumerable{C1.WPF.Grid.GridControlRange},System.Boolean,System.Boolean)">Select(IEnumerable&lt;GridControlRange&gt;, bool, bool)</h4>
<div class="markdown level1 summary"><p>Selects a collection of cells and optionally scrolls it into view.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Select(IEnumerable&lt;GridControlRange&gt; ranges, bool scrollIntoView, bool hideSelectionAdorners = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](ranges As IEnumerable(Of GridControlRange), scrollIntoView As Boolean, Optional hideSelectionAdorners 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.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.WPF.Grid.GridControlRange.html">GridControlRange</a>&gt;</td>
      <td><span class="parametername">ranges</span></td>
      <td><p>The collection of <a class="xref" href="C1.WPF.Grid.GridControlRange.html">GridControlRange</a> to select.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">scrollIntoView</span></td>
      <td><p>Whether to scroll the new selection into view.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">hideSelectionAdorners</span></td>
      <td><p>Whether the selection adorners are hidden.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
