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

In This Topic
    ScrollPosition Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets the location of the auto-scroll position.
    Syntax
    'Declaration
     
    Public Property ScrollPosition As Point
    public Point ScrollPosition {get; set;}
    Remarks

    Use the ScrollPosition property to get or set the scroll position using pixel coordinates.

    Use the C1.Win.C1FlexGrid.C1FlexGridBase.TopRow and C1.Win.C1FlexGrid.C1FlexGridBase.LeftCol properties to get or set the scroll position using cell coordinates.

    Example
    This code binds two grids (_flexLeft and _flexRight) together and synchronizes their scrolling in the vertical direction (the user can scroll the grids independently in the horizontal direction).
    See Also