Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and list box not at first row
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00044111
Message ID:
00044279
Vues:
26
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
Fil
Voir

Click here to load this message in the networking platform