Scroll Method

       

Scrolls the DataGrid control horizontally and vertically in a single operation. Doesn't support named arguments.

Syntax

object.Scroll colvalue, rowvalue

The Scroll method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
colvalue Required. A long numeric expression that specifies a column in the control.
rowvalue Required. A long numeric expression that specifies a row in the control.

Remarks

Positive values scroll right and down. Negative values scroll left and up. Values that are out of range don't cause an error — the DataGrid control scrolls to the maximum degree possible. The same effect can be achieved by setting the FirstRow and LeftCol properties, but these must be set independently, causing two separate Paint events.