ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.8 Assembly / C1.Win.C1FlexGrid Namespace / RowWithDetails Class / DataIndex Property

In This Topic
    DataIndex Property (RowWithDetails)
    In This Topic
    Gets the index of this row in the RowCollection collection, excluding fixed and node rows.
    Syntax
    'Declaration
     
    Public ReadOnly Property DataIndex As Integer
    public int DataIndex {get;}
    Remarks

    This property returns -1 if the row is a fixed or node row.

    If the grid is bound to a data source, the return value can be used as an indexer into the grid's data source to obtain a reference to the item bound to the row.

    You can also obtain the underlying data object directly using the row's DataSource property.

    See Also