SetCursor

You can move the cursor to a specific cell in a grid using the following command:

Formname.Gridname.SetCursor(row,col);

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 at which you want to position the cursor.

col

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