ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / LeftCol Property

In This Topic
    LeftCol Property (C1FlexGridBase)
    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 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 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 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 LeftCol and TopRow properties may correspond to partially visible rows or columns.

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

    To ensure that a given cell is visible, use the ShowCell method.

    See Also