Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid caves in
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00670573
Message ID:
00670584
Vues:
17
>I have a grid on a pageframe that displays fine when you first display the page. To add a record to the grid, the user clicks a command button, goes to a new screen, enters the data and returns to the first page. The grid is supposed to refresh and include new record. However, whenever you return to the grid, the columns resize, the headers are now field names not the header names I set and it displays all columns in the select statement that populates the grid (I don't want to display data for the primary key field). Any ideas why grid is resizing. I run a grid_resize method to refresh data?
>
>Thanks,
>Doug

Doug, while some details on how exactly you do this are not clear, I bet you somewhere rebuild the cursor which is the RecordSource of the grid. This causes the grid to reconstruct itself, so you loose the original formatting and get the default columns order in the cursor instead. You might try to use the view instead of the SELECT statement. Requiring the view does not cause the grid recordsource destruction.
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