# C1.Win.FlexGrid.C1FlexGridBase.FindRow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_FindRow_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRow*">FindRow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_FindRow_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRow*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_FindRow_System_String_System_Int32_System_Int32_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRow(System.String,System.Int32,System.Int32,System.Boolean,System.Boolean,System.Boolean)">FindRow(string, int, int, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Finds a row that contains a specified string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual int FindRow(string strFind, int rowStart, int col, bool caseSensitive, bool fullMatch, bool wrap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function FindRow(strFind As String, rowStart As Integer, col As Integer, caseSensitive As Boolean, fullMatch As Boolean, wrap As Boolean) 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.string">string</a></td>
      <td><span class="parametername">strFind</span></td>
      <td><p>String to look for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowStart</span></td>
      <td><p>Index of the row where the search should start.</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>Column that contains the data to be searched.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">caseSensitive</span></td>
      <td><p>Whether the search should be case-sensitive.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fullMatch</span></td>
      <td><p>Whether a full match is required. If this parameter is set to false, searching for &quot;John&quot; may return a row that contains &quot;Johnson&quot;.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">wrap</span></td>
      <td><p>Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>The index of the row that contains the string, or -1 if the string is not found.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_FindRow_System_String_System_Int32_System_Int32_System_Boolean_System_Boolean_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>To allow users to search for data as they type, use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.AutoSearch.html#C1_Win_FlexGrid_C1FlexGridBase_AutoSearch">AutoSearch</a> property.</p>
</div>


<a id="C1_Win_FlexGrid_C1FlexGridBase_FindRow_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRow*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_FindRow_System_Object_System_Int32_System_Int32_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRow(System.Object,System.Int32,System.Int32,System.Boolean)">FindRow(object, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Finds a row that contains a specified value in a given column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual int FindRow(object objFind, int rowStart, int col, bool wrap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function FindRow(objFind As Object, rowStart As Integer, col As Integer, wrap As Boolean) 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.object">object</a></td>
      <td><span class="parametername">objFind</span></td>
      <td><p>Object to look for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowStart</span></td>
      <td><p>Index of the row where the search should start.</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>Column to be searched.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">wrap</span></td>
      <td><p>Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>The index of the row that contains the data, or -1 if the <code class="paramref">objFind</code> object is not found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
