Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic forecolor problem - VFP 8.0 grid
Message
From
02/06/2003 08:05:47
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00795076
Message ID:
00795138
Views:
31
Hello Nancy.

i have a simple grid on a VFP 8 form. i want the text in one column to appear in blue if the person is a male and red if a female.

IIF( MyRecordSource.Sex == 'F', rgb(255,0,0), rgb(0,0,255) )

in the DynamicBackColor of the column should do it. You also have to make sure that you refresh the grid whenever the data in the sex column changes.

secondly i am using the gridhighlighter object to highlight the row of the grid; could that be causing the dynamicforecolor event to not fire correctly?

That I do not know because I do not use it. However, you do not need an external grid hightlighter in VFP 8.0. This behavior is finally native (except for that it doesn't work on column's that have their sparse property set to false < s >).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform