Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add & format columns at runtime
Message
De
27/10/2008 14:23:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01357444
Message ID:
01357448
Vues:
20
>I have a form with a 2 column grid on it.
>
>At runtime, I want to add additional columns.
>
>In the Refresh method, I can increase the column count. The display shows me the additional columns. However, when I try to access the columns property of the grid at runtime, like so:
>
>
>		loCol = this.grdProjEnrollSummary.Columns.Item(lnColIx)
>
>
>I get the error messag: "Unknown member Columns".
>
>The reason I want to retrieve a column object is for purposes of formatting the column and setting the header text.
>
>Would it be better to use the AddColumn method, and explicitly name the new columns and their headers? At least then I would be able to access these columns by name.
>
>Thanks for your help.
>
>Jim

You could access it by
oColumn=This.grdProjEnrollSummary.Columns(nCollx)
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform