Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement