Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid has me stumped yet again
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01503112
Message ID:
01503114
Vues:
92
Did you issue Grid.Refresh() after updating data?

>I have designed a form that contains a tabless page frame. Page 1 has an embedded browser control and page 2 has a grid whose record source is tied to a cursor alias at design time.
>
>On form load, I create the empty grid cursor and upon the show of the form, the grid shows the data perfectly. If I click on a control on the bottom of the form, then page 1 becomes active and displays content. When I click on a different button, I execute code to refresh the cursor (zap, followed by insert into ... select) and then make page 2 active. The problem I'm running into is that the grid is completely empty. It's not because of the cursor, because if I suspend, the cursor exists and contains data.
>
>I know it's related to the refresh of the cursor, but can't figure out why the grid doesn't show any data.
>
>Any ideas would be greatly appreciated.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform