Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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 >).
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement