FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid.Classic Namespace / C1FlexGridClassic Class / FindRowRegex Method
The regular expression pattern to match.
Index of the row where the search should start.
Column that contains the data to be searched.
Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.

In This Topic
    FindRowRegex Method (C1FlexGridClassic)
    In This Topic
    Finds a row that contains a specified value in a given column using a RegularExpression.
    Syntax
    'Declaration
     
    
    Public Overridable Function FindRowRegex( _
       ByVal pattern As String, _
       ByVal rowStart As Integer, _
       ByVal col As Integer, _
       ByVal wrap As Boolean _
    ) As Integer
    public virtual int FindRowRegex( 
       string pattern,
       int rowStart,
       int col,
       bool wrap
    )

    Parameters

    pattern
    The regular expression pattern to match.
    rowStart
    Index of the row where the search should start.
    col
    Column that contains the data to be searched.
    wrap
    Whether the search should stop at the bottom of the grid or wrap around and restart from the first scrollable row.

    Return Value

    The index of the row that matches the pattern, or -1 if no matches were found.
    Remarks
    The pattern parameter specifies a regular expression pattern expressed in the usual System.Text.RegularExpressions.Regex 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.
    See Also