Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Skip in recordsource or Scroll
Message
From
24/09/2010 09:15:44
 
 
To
24/09/2010 09:10:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01482559
Message ID:
01482560
Views:
50
>I have a grid on a form for which I dump in different records from two different tables. I then want the grid to go to the bottom and show the last 7 records and have the 8th row show blank. Using the object I can go to the bottom in the recordsource, but when I do it aligns in the grid to show three blank rows. If I manually click in the grid during runtime and arrow up (to simulate a skip -1 each click) on the grid and count the number of skips and code using the object to do a skip -6 to try to get it to show correctly in the grid the way it did manually, it does not. If I manually click on the little scroll arrow I can get it to show correctly manually every time as well. Is there coding I can use to programmatically to simulate clicking the arrow instead of skiping records in the recordsource? I would like to try that and see if I can get it to position the way I want it. Why do the grids react so much differently programmatically vs in runtime where I can manually move it the same number of times for any given situation and get the display I want?

Check Grid.DoScroll() method.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform