Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling Grids?
Message
From
03/02/2003 16:39:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00748398
Message ID:
00748618
Views:
20
Hi Everyone,

I also have this problem, and it is in VFP8. However, I think the problem is the relation of the grid to datasource. I did some research some time ago on this issue. Now, if someone could correct my theory please do!!!

Otherwise, I understand a grid object to not actually be on a file record until a data control within the grid has the focus. Other grid objects do not actually 'touch' the data, and this includes the scoll bar. Only when you release the scoll bar (after you let go of the click) does it refresh its' own visibility - but only as far as the picture of what it is holding, not the physical record it is pointing to. BTW: You can replicate this problem with a plain old USE mydbf, BROWSE command.

The up/down arrows work only when the grid has the focus, meaning the control within the grid touching the data has the focuse. So when up/down arrows are used (a default file pointer), they show results instantly.

Now, I am not sure if it can be found, but there was some code somewhere to overcome this by changing the master class, but this was last year+. The only solution I recommend is for MS to use the same 'browser' engine as SQL. But, I would think that for a 'realtime' update, you would incur some extra overhead and slow your app down in the first instance.

BTW: Vlad wrote several great articles in the Magazine on grids. Might be worthwhile to check them out as background.

My 0.02

Ric



>Hi all,
>
>I have a form with a Grid on it and I've noticed that if the scroll bars are available and you drag the scroller then the grid doesn't update in real time as you would expect (VF7). It waits until you release the mouse then jumps to the selected location.
>
>How do I get it to scroll in real time?
>
>Now I know to get this to work correctly for a ListBox then no filters can be set (including set deleted) is there something else that controls it in a grid?
>
>Thanks in anticipation.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform