General information
Category:
Forms & Form designer
I had a similar problem in VFP 5.0. When I activated a page on a form, the grid was empty, I had to scroll up to see the 1 record.
I added "Grid1.Setfocus" to the page's Init method and then it worked correctly. If your grid should have focus, try this approach. If not, maybe you could set focus to the grid, then to the desired control.
HTH
>>Hi all. I am using VFP 3.0 for Windows.
>>
>>What is the command to force a listbox or grid to display its rows starting with the first? Some of my grids will hide the first row or two and I must scroll up to see them. This can be very misleading for the users.
>
>Usually both will start at the top. For the listbox, you can set the listindex property to 1. In the grid, try issuing GO TOP to make sure that your record pointer for the .RecordSource is at the top.
>
>That ought to do it
>
>Steve
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only