Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor Using A Method Instead of IIF?
Message
From
19/10/1998 08:57:35
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00148063
Message ID:
00148064
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform