General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only