# C1.WPF.FlexGrid.C1FlexGrid.Select

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_C1FlexGrid_Select_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select*">Select Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_C1FlexGrid_Select_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_Select_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select(System.Int32,System.Int32)">Select(int, int)</h4>
<div class="markdown level1 summary"><p>Selects a given 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)</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>Index of the row that contains the selected cell.</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>Index of the column that contains the selected cell.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_FlexGrid_C1FlexGrid_Select_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_Select_C1_WPF_FlexGrid_CellRange_System_Boolean_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select(C1.WPF.FlexGrid.CellRange,System.Boolean)">Select(CellRange, 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(CellRange rng, bool scrollIntoView)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](rng As CellRange, scrollIntoView 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.WPF.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rng</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</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>
  </tbody>
</table>


<a id="C1_WPF_FlexGrid_C1FlexGrid_Select_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_Select_System_Int32_System_Int32_System_Boolean_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select(System.Int32,System.Int32,System.Boolean)">Select(int, int, 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(int row, int col, bool scrollIntoView)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](row As Integer, col As Integer, scrollIntoView 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>Index of the row that contains the selected cell.</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>Index of the column that contains the selected cell.</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>
  </tbody>
</table>


<a id="C1_WPF_FlexGrid_C1FlexGrid_Select_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.Select*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_Select_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.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 cell range 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(int row, int col, int row2, int col2, bool scrollIntoView)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](row As Integer, col As Integer, row2 As Integer, col2 As Integer, scrollIntoView 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>Index of the first row in the selected range.</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>Index of the first column in the selected range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>Index of the last row in the selected range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col2</span></td>
      <td><p>Index of the last column in the selected range.</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>
  </tbody>
</table>
</div>
