ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / DataGridRowCollection Class / IndexOf Method
The data item.

In This Topic
    IndexOf Method
    In This Topic
    Gets the index of the specified data item.
    Syntax
    'Declaration
     
    
    Public Function IndexOf( _
       ByVal dataItem As Object _
    ) As Integer
    public int IndexOf( 
       object dataItem
    )

    Parameters

    dataItem
    The data item.

    Return Value

    The index, -1 if not found
    See Also