ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / LeftCol Property

In This Topic
    LeftCol Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets the first visible column in the scrollable area.
    Syntax
    'Declaration
     
    Public Property LeftCol As Integer
    public int LeftCol {get; set;}
    Remarks

    Setting the C1.Win.C1FlexGrid.C1FlexGridBase.LeftCol property causes the grid to scroll horizontally so that the given column becomes the leftmost visible column. This is often useful when you want to synchronize two or more grids so that when one of them scrolls, the other scrolls as well. To scroll vertically, use the C1.Win.C1FlexGrid.C1FlexGridBase.TopRow property.

    When setting this property, the largest possible column number is the total number of columns minus the number of columns that will fit the display. Attempting to set C1.Win.C1FlexGrid.C1FlexGridBase.LeftCol to a greater value will cause the grid to set it to the largest possible value (no error will occur).

    The value returned by the C1.Win.C1FlexGrid.C1FlexGridBase.LeftCol and C1.Win.C1FlexGrid.C1FlexGridBase.TopRow properties may correspond to partially visible rows or columns.

    Use the C1.Win.C1FlexGrid.C1FlexGridBase.LeftCol and C1.Win.C1FlexGrid.C1FlexGridBase.TopRow properties to scroll using cells as units. Use the ScrollPosition property to scroll the grid using pixel units.

    To ensure that a given cell is visible, use the C1.Win.C1FlexGrid.C1FlexGridBase.ShowCell method.

    See Also