Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add & format columns at runtime
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to add & format columns at runtime
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01357444
Message ID:
01357444
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform