You can move a cell to the top left position of a grid using the following command:
Formname.Gridname.SetScroll(row
where:
Is the form on which the grid appears.
Is the name of the grid.
Is the row number of the cell that is to be moved to the top left of the grid.
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 |