Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I refresh grids in a form?
Message
 
À
15/10/1999 23:08:39
Raymond Lee
Digicentury (Guangzhou)
Guangzhou, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00277177
Message ID:
00277178
Vues:
26
>I have a problem with the grid control. If I do the SQL statement again, the grid becomes a blank area. Why? How to resovle this problem?
>
>Thanks,
>
>Raymond

Raymond, issuing SQL statement again trashes your grid.recordsource.

Before doing SQL again you have to reset

grid.recordsource = ""
* SQL statement goes here
grid.recordsource = "mySQLcursor"

If you set up the individual column.controlsource you also should remember/reset each column.controlsource.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform