You can move the cursor to a specific cell in a grid using the following command:
Formname.Gridname.SetCursor(row,col);
where:
Is the form on which the grid appears.
Is the name of the grid.
Is the row number of the cell at which you want to position the cursor.
Is the column number of the cell at which you want to position the cursor.
For example, the following command positions the cursor at cell (x,y) in grid1 on form1:
form1.grid1.SetCursor(x,y);
Information Builders |