Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic forecolor problem - VFP 8.0 grid
Message
 
À
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:
00795775
Vues:
29
Marcia,

Thanks for replying. Last night I said goodbye to all my gridhighlighter objects and switched to the VFP 8.0 built in highlighting. I tried your code below but I am getting the same result.

i am using in the dynamicforecolor event of column1 of my grid:
IIF(this.value == 'F', rgb(255,0,0), rgb(0,0,255) )

however the records below are all showing up in the same color. i guess i am assuming that statement is being evaluated for every row and perhaps it is evaluated just once for the entire column. I am trying to get entries like the ones below to show up in two different colors depending on the sex.

Female
Male
Female
Female
Male

Thnx.


>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
Répondre
Fil
Voir

Click here to load this message in the networking platform