Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Grid a possibility?
Message
 
To
24/11/1998 10:41:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00160820
Message ID:
00160969
Views:
16
>Hi Pete ----
>
>OK, assuming that you have run David's program and the View Caption properties are set the way you like them, in the Init of the Grid, you could run some code like the following:
>
>FOR i = 1 TO THIS.ColumnCount
> cFieldName=THIS.Columns(i).ControlSource
> THIS.Columns(i).Header1.Caption = DBGETPROP(cFieldName,"FIELD","Caption")
>ENDFOR
>

Hello John,
I see you've reverted to the old favourite footnote, I've tried code in the init of the grid before and it fails if the wrong container is current when you call DBGetProp(), as a temporary measure I've added a property to my grid base class which contains the name of the DBC and populate it with the correct info at build time, fortunately at present most of my work is in house so it's not too much of a problem. If you know of a solution where one could ( from the init of a grid ) ascertain the DBC I would be very grateful.

Regards
Pete Kane
Regards,
Peter J. Kane



Pete
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform