Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Grid a possibility?
Message
 
À
24/11/1998 10:41:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00160820
Message ID:
00160969
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform