Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to update only the changed row grid color
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01416806
Message ID:
01416814
Vues:
60
>I have been using the below code for some time but it seems it is quite slow, what is a way to just change the grid colors for the row the user changes, rather than have this code run on the entire grid with every row change.
>
>
>
>Thisform.Grid1.SetAll("DynamicForeColor",; 
>"IIF((<Var> == ALLTRIM(<tablename>.<fieldname>) AND <boolean1 field>) OR ;
>     (<Var> == ALLTRIM(<tablename>.<fieldname>) AND <boolean2 field>), RGB(128,64,64), RGB(255,255,255))",;
>"Column") 
>
>Thisform.Grid1.SetAll("DynamicBackColor",; 
>"IIF((<Var> == ALLTRIM(<tablename>.<fieldname>) AND <boolean1 field>) OR ;
>     (<Var> == ALLTRIM(<tablename>.<fieldname>) AND <boolean2 field>), RGB(128,64,64), RGB(255,255,255))",;
>"Column") 
>
>
>
>Should I put the color code on AfterRowColumnChange?

Do you want to set colors for all rows or for active row only?
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform