FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / ColumnCollection Class / IndexOf Method / IndexOf(String,Int32) Method
Column name to look for (case-insensitive).
The search starting index.

In This Topic
    IndexOf(String,Int32) Method
    In This Topic
    Gets the index of the Column with the specified name. The search starts at a specified index.
    Syntax
    'Declaration
     
    
    Public Overloads Function IndexOf( _
       ByVal columnName As String, _
       ByVal startIndex As Integer _
    ) As Integer
    public int IndexOf( 
       string columnName,
       int startIndex
    )

    Parameters

    columnName
    Column name to look for (case-insensitive).
    startIndex
    The search starting index.

    Return Value

    Index of the column that has the given name in this collection, or -1 if the collection does not contain a column with the given name.
    See Also