Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid refresh.
Message
 
À
21/06/2000 06:12:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00382588
Message ID:
00382606
Vues:
15
>I have a form with a pageframe with 4 pages and 1 grid in every page.
>The grids recordsource is a cursor.
>Im adding some records to the cursor programaticly.
>I use this command for refreshing the grid.
>this.parent.parent.Page1.pageframe1.Page2.Grid1.recordsource = this.parent.parent.Page1.pageframe1.Page2.Grid1.recordsource
>Its work fine sometime.
>But sometime the grids headernames or inputmask or other properties ar loes after this step.
>Any ideas.
>Thanks.

Cemal, if you only want to refresh the grid you should use grid.refresh().
If you reset the grid.recorsource the grid looses its settings. before doing so you have to set grid.recorsource = "". If your column.controlsources are not in default order you need to reset them also after resetting the recordsource.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform