Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backcolor of single grid textboxes
Message
De
04/04/2008 03:16:34
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Backcolor of single grid textboxes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01308167
Message ID:
01308167
Vues:
48
Hello Everybody !

at init of my form i do
thisform.grid1.recordsource = " " &&keeping my column definitions
select xxx,yyy,amount,zzz... from ... into cursor xyz && sql passthrough to maxdb database with odbc
thisform.grid1.recordsource = xyz


Now i want to change the backcolor of some textboxes in column3 depending on the content.
Example:
amount < 100 = red
amount >99 and < 1001 = white
amount > 1000 = green

I know how to change the backcolor of the rows (setall dynamicbackcolor ...)
I don't know how to change the backcolor of single cells.

Any help welcomed.
Best regards
Albert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform