ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.5.2 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / RowSel Property

In This Topic
    RowSel Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets the last row in the current selection.
    Syntax
    'Declaration
     
    Public Property RowSel As Integer
    public int RowSel {get; set;}
    Remarks

    Use the C1.Win.C1FlexGrid.C1FlexGridBase.RowSel and C1.Win.C1FlexGrid.C1FlexGridBase.ColSel properties to modify a selection or to determine which cells are currently selected. Columns and rows are numbered from zero, beginning at the top for rows and at the left for columns.

    Setting the C1.Win.C1FlexGrid.C1FlexGridBase.Row and C1.Win.C1FlexGrid.C1FlexGridBase.Col properties automatically collapses the selection to a single cell, resetting the RowSel and ColSel properties. Therefore, to specify a block selection, you must Row and Col, then RowSel and ColSel. Alternatively, you may use the C1.Win.C1FlexGrid.C1FlexGridBase.Select method to select a range with a single statement.

    If the C1.Win.C1FlexGrid.C1FlexGridBase.SelectionMode property is set to C1.Win.C1FlexGrid.SelectionModeEnum.ListBox, you should use the C1.Win.C1FlexGrid.RowCol.Selected property on individual row objects to select and deselect rows.

    When a range is selected, the value of C1.Win.C1FlexGrid.C1FlexGridBase.Row may be greater than or less than C1.Win.C1FlexGrid.C1FlexGridBase.RowSel, and C1.Win.C1FlexGrid.C1FlexGridBase.Col may be greater than or less than C1.Win.C1FlexGrid.C1FlexGridBase.ColSel. This is inconvenient when you need to set up bounds for loops. In these cases, you can use the C1.Win.C1FlexGrid.C1FlexGridBase.Selection property to retrieve a normalized C1.Win.C1FlexGrid.CellRange object, where r1 <= r2 and c1 <= c2.

    See the C1.Win.C1FlexGrid.C1FlexGridBase.ColSel property for an example.

    See Also