SetScroll

You can move a cell to the top left position of a grid using the following command:

Formname.Gridname.SetScroll(row

where:

Formname

Is the form on which the grid appears.

Gridname

Is the name of the grid.

row

Is the row number of the cell that is to be moved to the top left of the grid.

col

Is the column number of the cell that is to be moved to the top left of the grid.

For example, the following command scrolls the grid so that cell (x,y) in grid1 on form1 is at the top left corner of the grid:

form1.grid1.SetScroll(x,y);

Information Builders