Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid DynamicBackColor
Message
De
03/04/2001 16:06:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00491485
Message ID:
00491534
Vues:
9
>Hi all,
>
>How do you set the back the back color of a column in a grid to a different color? In a a grid I have three columns, the first two columns controls' are should display in gray. I have tried manipulating the DynamicBackColor (bases on the examples in the KB and sample files) of the first two columns in the Init of the Grid as well as the in the When. What is the secret that I have missed. I know it has got to be simple!
>
>Thanks...

Hi Robert

Try the following in the refresh of the grid. It will reset anytime the form's refresh is called.

this.column1.DYNAMICBACKCOLOR = "IIF(some_codition, RGB(128,255,255),RGB(255,255,255))"

This always works for me.

HTH
MIKE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform