Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming Columns in a grid control
Message
From
20/02/2003 08:47:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00755457
Message ID:
00755459
Views:
12
This message has been marked as the solution to the initial question of the thread.
>When specifying the number of columns in a grid FoxPro 6 names each of the columns "grid1". How can I change this name... say from the init method of the form?
>
>Thanks!

ie:
with thisform.grid1
 for each oCol in .Columns
   oCol.Name = justext(oCol.ControlSource)
 endfor
endwith
PS: Assumed controlsources were in the form alias.field
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform