Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic forecolor problem - VFP 8.0 grid
Message
De
02/06/2003 08:05:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00795076
Message ID:
00795138
Vues:
27
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
Fil
Voir

Click here to load this message in the networking platform