Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Updating
Message
De
22/11/1999 20:28:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00293910
Message ID:
00294158
Vues:
24
>I have a grid and the source is a table and type is alias. When a product number is entered in the 3rd column and you press enter or tab, it looks up that number in an array and then updates the table for column 4,7, and 8. The table is updated correctly, but the grid will not show the changes from the table until you press enter or tab again. Sometimes it will show all the changes immediately, sometimes it will only show the changes for column 7 and 8, and sometimes it will show no changes. I have tried coding in BeforeRowColChange and AfterRowColChange with the same results. I've tried thisform.grid1.refresh everywhere with no luck. Is there a way to refresh the activerow of a grid? Or, how do you code your grid to update when changes are made to the associated table it is linked to.
>Thanks for your help!
>
>Colombo.

You can move focus out of grid, e.g. to some button on your form (thisform.mybutton.setfocus) and immediately return it back at the same method/event: e.g. This.parent.parent.setfocus from column.textbox keypress.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform