Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the default width on all columns in a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01042887
Message ID:
01042982
Vues:
19
>I have a grid on a form which is populated by a cursor. Is there anyway that I can set all columns in the grid to a default width? Bare in mind the cursor can be populated by a query on another table which could have more columns.
>
>Many Thanks

Neil, an alternative to setting all columns to a fixed width, you could call the AutoFit() method of the grid, which will set all the columns to the best fit for all columns (using the currently displayed values), you can call this method in any moment, in your case I guess you would call it after changing the ControlSource of the grid
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform