Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Caption for Grid1.Header1.Caption
Message
 
To
23/01/2004 15:05:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00867362
Message ID:
00870105
Views:
23
Probably because you created the grid with predefined number of columns.
If set to -1, the headers accept field captions.
In your case you could do something like:
*Form.Init 
open database ...
select (grid_recordSource)
with thisform.grid1
   for ia=1 to .columncount
       lccom=".Column"+TRANSFORM(ia)+".Header1.Caption="+;
       		"["+ DBGETPROP(ALIAS()+"."+FIELD(ia),"FIELD","CAPTION")+"]"
       	&lccom	
   endfor
endwith
>Hi Terry,
>
>All you get is header1 as your grid heading for all columns in the grid.
Previous
Reply
Map
View

Click here to load this message in the networking platform