# C1.Win.FlexGrid.C1FlexGridBase.FindRowRegex

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_FindRowRegex_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRowRegex*">FindRowRegex Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_FindRowRegex_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRowRegex*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_FindRowRegex_System_String_System_Int32_System_Int32_System_Boolean_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.FindRowRegex(System.String,System.Int32,System.Int32,System.Boolean)">FindRowRegex(string, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Finds a row that contains a specified value in a given column using a <b>RegularExpression</b>.</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 FindRowRegex(string pattern, int rowStart, int col, bool wrap)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function FindRowRegex(pattern As String, 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.string">string</a></td>
      <td><span class="parametername">pattern</span></td>
      <td><p>The regular expression pattern to match.</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">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 matches the pattern, or -1 if no matches were found.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_FindRowRegex_System_String_System_Int32_System_Int32_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code class="paramref">pattern</code> parameter specifies a regular expression pattern
expressed in the usual <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.regularexpressions.regex">Regex</a> syntax.
The regular expression syntax supports character classes, ranges, repeat counts,
alternate matches, and more. Please refer to the .NET documentation for details and examples.</p>
</div>
</div>
