DataGrid.scroll

Overview | Methods | Fields | This Package | All Packages

DataGrid.scroll

Scrolls the grid horizontally and vertically.

Syntax

public void scroll( int cols, int rows )

Parameters

cols

The number of columns to scroll in the horizontal direction. Positive values scroll right; negative values scroll left. Note that scrolling by 0 columns makes the current leftmost column completely visible.

rows

The number of rows to scroll in the vertical direction. Positive values scroll down; negative values scroll up.

Exceptions

WFCInvalidArgumentException thrown if the DataGrid control is not bound.

Remarks

If you specify a value for cols or rows that is out of range, the grid simply scrolls to the maximum position in that direction.

You can also scroll the grid by calling setFirstRow and setLeftColumn.