Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Columns Resizing After Packing Table
Message
De
29/01/2004 14:59:26
 
 
À
29/01/2004 13:54:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00871935
Message ID:
00871992
Vues:
22
>I'm resetting the RecordSource to "" and then to "MyTable" but the columns resize to what I think is the default size of the field lengths. What gives? I don't want to have to put a bunch of column widths into the grid. Why do they resize? Thanks!
>
>Regards, Renoir

Any time the grid's recordsource changes, if there are no specified column widths, they will resize back to original.

if you're using VFP8, you might (depending on your needs) be able to take advantage of the grid.AutoSize() to resize the grid columns back for you.

an all versions, the quickest way is to store the sizes in an array before removing the recordsource, then restore after rebinding it.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform