Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid DynamicBackColor Using A Method Instead of IIF?
Message
De
19/10/1998 08:57:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00148063
Message ID:
00148064
Vues:
14
>I have a grid I need to have many different row colors based on the value of a field. Easy enough using an IIF in the DynamicBackColor property. However, I need to check for about 15 different values. Obviously, I can't nest IIF's this deep. My next idea was to created a method in the grid class which returns the proper color, but this doesn't seem to work either.
>
>Any suggestions?

Custom method should work OK. Something like:
Thisform.Grid1.columnX.dynamicbackcolor="thisform.getcolumncolor(curGrid.fieldx)"
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform