ComponentOne List for WinForms
C1.Win.C1List Namespace / DropDownList Class / ScrollCtl Method
The number of rows to scroll.
The number of columns to scroll.

In This Topic
    ScrollCtl Method (DropDownList)
    In This Topic
    Scrolls the list data area by the specified number of rows and columns.
    Syntax
    'Declaration
     
    
    Public Sub ScrollCtl( _
       ByVal cols As Integer, _
       ByVal rows As Integer _
    ) 
    public void ScrollCtl( 
       int cols,
       int rows
    )

    Parameters

    cols
    The number of rows to scroll.
    rows
    The number of columns to scroll.
    Remarks

    Positive offsets scroll right and down. Negative offsets scroll left and up. Column offsets that are out of range cause a trappable error. Row offsets that are out of range scroll to the beginning or end of the database.

    The same effect can be achieved by setting the C1.Win.C1List.ListBase.C1ListBase.LeftCol and C1.Win.C1List.ListBase.C1ListBase.TopIndex properties, but these must be set independently.

    See Also