Object Reference > True DBGrid Methods > Scroll Method |
Scroll Method
This method scrolls the grid horizontally and vertically in a single operation.
object.Scroll coloffset, rowoffset
Arguments
coloffset is a long integer denoting the number of columns to scroll and the direction in which to scroll them.
rowoffset is a long integer denoting the number of rows to scroll and the direction in which to scroll them.
Return Value
None
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 LeftCol and FirstRow properties, but these must be set independently.