Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
 
 
To
26/10/2004 07:48:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Grid
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00954475
Message ID:
00954627
Views:
12
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?
**************************************************
*-- Form:         form1 (c:\temp\gridtest.scx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   10/26/04 01:12:04 PM
*
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform