FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGrid Class / FindRow Method / FindRow(Object,Int32,Int32,Boolean) Method
Object to look for.
Index of the row where the search should start.
Column 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
    FindRow(Object,Int32,Int32,Boolean) Method
    In This Topic
    Finds a row that contains a specified value in a given column.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function FindRow( _
       ByVal objFind As Object, _
       ByVal rowStart As Integer, _
       ByVal col As Integer, _
       ByVal wrap As Boolean _
    ) As Integer
    public virtual int FindRow( 
       object objFind,
       int rowStart,
       int col,
       bool wrap
    )

    Parameters

    objFind
    Object to look for.
    rowStart
    Index of the row where the search should start.
    col
    Column 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 contains the data, or -1 if the objFind object is not found.
    See Also