FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGrid Class / Row Property

In This Topic
    Row Property (C1FlexGrid)
    In This Topic
    Gets or sets the row that contains the cursor.
    Syntax
    'Declaration
     
    
    Public Property Row As Integer
    public int Row {get; set;}
    Remarks

    Use the Row and Col properties to make a cell current or to find out which row or column contains the current cell. Columns and rows are numbered from zero, beginning at the top for rows and at the left for columns.

    The Row property may be set to -1 to hide the selection, to a value between zero and Rows.Fixed-1 to select a cell in a fixed row, or to a value between Rows.Fixed and Rows.Count-1 to select a cell in a scrollable row.

    Setting the Row and Col properties automatically collapses the selection to a single cell, resetting the RowSel and ColSel properties. To specify a block selection, you must set Row and Col, then RowSel and ColSel. Alternatively, you can use the C1FlexGridBase.Select method to select an arbitrary range with a single statement.

    Setting the Row and Col properties does not ensure that the current cell is visible. To do that, use the C1FlexGridBase.ShowCell method.

    See Also