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

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

    Use the C1.Win.C1FlexGrid.C1FlexGridBase.Row and C1.Win.C1FlexGrid.C1FlexGridBase.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 C1.Win.C1FlexGrid.C1FlexGridBase.Col property may be set to -1 to hide the selection, to a value between zero and Cols.Fixed-1 to select a cell in a fixed column, or to a value between Cols.Fixed and Cols.Count-1 to select a cell in a scrollable column.

    Setting the Row and Col properties automatically collapses the selection to a single cell, resetting the C1.Win.C1FlexGrid.C1FlexGridBase.RowSel and C1.Win.C1FlexGrid.C1FlexGridBase.ColSel properties. To specify a block selection, you must set Row and Col, then RowSel and ColSel. Alternatively, you can use the C1.Win.C1FlexGrid.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 C1.Win.C1FlexGrid.C1FlexGridBase.ShowCell method.

    See Also