Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add & format columns at runtime
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to add & format columns at runtime
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01357444
Message ID:
01357444
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform