Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column Data ForeColor
Message
 
 
À
28/10/2009 22:09:10
Paul Ong
Knights of Christ Foundation
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01431831
Message ID:
01432182
Vues:
116
One more time, you have to assign an expression that will be evaluated later during grid refresh not at the time of assignment
thisform.grid1.column2.DynamicForeColor = "IIF((tbltest.nid % 2)=0,RGB(254,0,0),RGB(255,255,255))"
>thisform.grid1.column2.DynamicForeColor = IIF(MOD(tbltest.nid,2)=0,'RGB(254,0,0)','RGB(255,255,255)')
>
>i put this code, in the init of the grid, afterrow and beforerow,
>
>i do note, that it takes effect only after you move thru the records and it inherents the last color on the next record before it shows its real color when you move away again
>
>>You have to set Dynamic* property only ones. Keep in mind that it has to be expression that will be evaluated later. If it's evaluated at the time >of assignment than it'll not be dynamic. Could you post related code from the Init?
>
>>But it doesn't seem to work in INIT, and its late on afterrow, beforerow properties? any idea?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform