Rakesh,
This is far from the normal behavior for grids. Do you have any code in the grid/form or their classes that may be doing this?
DEFINE CLASS form1 AS form
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT grid1 AS grid WITH ;
Height = 209, ;
Left = 24, ;
Top = 19, ;
Width = 239, ;
Name = "Grid1"
PROCEDURE Load
create cursor x1 ( c1 c(10), c2 c(10) )
for i = 1 to 100
insert into x1 values ( str(i), transform( i ) )
endfor
go top
ENDPROC
ENDDEFINE
Run the code (which is just a simple form with a baseglass grid on it
click the mouse into one of the rows
type a value into a field
use the mouse to vertically scroll the grid down
click into a visible cell - there is no jumping back
>thanks for the code, but what i really wanted was the following, but i will explain u my problem first.
>
>i have an unfiltered grid of about 1000 rows, maybe more rows but not less. the user also enters in certain columns of the grid.
>
>let us say he clicks on row 10 and then scrolls down using the scroll button to maybe row no 500 , then when he tries to click on that row, the cursor jumps back to row no 10.
>
>i want to stop this behaviour and make the scrolling synchronous.