# C1.Win.FlexGrid.C1FlexGridBase.Select

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*">Select Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(C1.Win.FlexGrid.CellRange,System.Boolean)">Select(CellRange, bool)</h4>
<div class="markdown level1 summary"><p>Selects a range of cells.</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(CellRange rg, bool show)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](rg As CellRange, show 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><a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rg</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> that specifies the cells that will be selected.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">show</span></td>
      <td><p>Whether to scroll the new selection into view.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Collections_Generic_IList_C1_Win_FlexGrid_CellRange__System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(System.Collections.Generic.IList{C1.Win.FlexGrid.CellRange},System.Boolean)">Select(IList&lt;CellRange&gt;, bool)</h4>
<div class="markdown level1 summary"><p>Selects a ranges of cells in MultiRange mode.</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(IList&lt;CellRange&gt; ranges, bool show)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](ranges As IList(Of CellRange), show 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a>&gt;</td>
      <td><span class="parametername">ranges</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> that specifies ranges of the cells that will be selected.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">show</span></td>
      <td><p>Whether to scroll the last selection range into view.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(C1.Win.FlexGrid.CellRange)">Select(CellRange)</h4>
<div class="markdown level1 summary"><p>Selects a range of cells and 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(CellRange rg)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](rg As CellRange)</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.Win.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rg</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> that specifies the cells that will be selected.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Collections_Generic_IList_C1_Win_FlexGrid_CellRange__" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(System.Collections.Generic.IList{C1.Win.FlexGrid.CellRange})">Select(IList&lt;CellRange&gt;)</h4>
<div class="markdown level1 summary"><p>Selects a ranges of cells and scrolls last selection range into view in MultiRange mode.</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(IList&lt;CellRange&gt; ranges)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](ranges As IList(Of CellRange))</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.ilist-1">IList</a>&lt;<a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a>&gt;</td>
      <td><span class="parametername">ranges</span></td>
      <td><p><a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> that specifies the cells that will be selected.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">Select(int, int, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Selects a range of cells.</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(int row, int col, int rowSel, int colSel, bool show)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](row As Integer, col As Integer, rowSel As Integer, colSel As Integer, show 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowSel</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.RowSel.html#C1_Win_FlexGrid_C1FlexGridBase_RowSel">RowSel</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colSel</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ColSel.html#C1_Win_FlexGrid_C1FlexGridBase_ColSel">ColSel</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">show</span></td>
      <td><p>Whether to scroll the new selection into view.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Select.html#C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_System_Boolean_">Select(CellRange, bool)</a> method is equivalent to setting the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a>,
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a>, <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.RowSel.html#C1_Win_FlexGrid_C1FlexGridBase_RowSel">RowSel</a>, and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ColSel.html#C1_Win_FlexGrid_C1FlexGridBase_ColSel">ColSel</a> properties.</p>
</div>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(System.Int32,System.Int32,System.Int32,System.Int32)">Select(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Selects a range of cells and 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(int row, int col, int rowSel, int colSel)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](row As Integer, col As Integer, rowSel As Integer, colSel As Integer)</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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowSel</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.RowSel.html#C1_Win_FlexGrid_C1FlexGridBase_RowSel">RowSel</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colSel</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ColSel.html#C1_Win_FlexGrid_C1FlexGridBase_ColSel">ColSel</a> property.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Select.html#C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_System_Boolean_">Select(CellRange, bool)</a> method is equivalent to setting the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a>,
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a>, <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.RowSel.html#C1_Win_FlexGrid_C1FlexGridBase_RowSel">RowSel</a>, and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ColSel.html#C1_Win_FlexGrid_C1FlexGridBase_ColSel">ColSel</a> properties.</p>
</div>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(System.Int32,System.Int32,System.Boolean)">Select(int, int, bool)</h4>
<div class="markdown level1 summary"><p>Selects a cell.</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(int row, int col, bool show)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](row As Integer, col As Integer, show 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">show</span></td>
      <td><p>Whether to scroll the new selection into view.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Select.html#C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_System_Boolean_">Select(CellRange, bool)</a> method is equivalent to setting the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> properties.</p>
</div>


<a id="C1_Win_FlexGrid_C1FlexGridBase_Select_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Select(System.Int32,System.Int32)">Select(int, int)</h4>
<div class="markdown level1 summary"><p>Selects a cell and 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(int row, int col)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](row As Integer, col As Integer)</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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>New value for the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> property.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_Select_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Using the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Select.html#C1_Win_FlexGrid_C1FlexGridBase_Select_C1_Win_FlexGrid_CellRange_System_Boolean_">Select(CellRange, bool)</a> method is equivalent to setting the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Row.html#C1_Win_FlexGrid_C1FlexGridBase_Row">Row</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Col.html#C1_Win_FlexGrid_C1FlexGridBase_Col">Col</a> properties.</p>
</div>
</div>
