Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the backcolor in a Grid
Message
De
09/01/2002 13:35:08
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
À
09/01/2002 07:52:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00602300
Message ID:
00602615
Vues:
24
>This code, of course, assumes that the columns have not been renamed from the original names of Column1, Column2, etc. and that they have not been reordered after adding them to the grid. A more generic solution would be someting (untested) like this:
>
>
>FOR EACH loColumn IN This.Columns
>  IF loColumn.ColumnOrder > 1
>    loColumn.DynamicBackColor = "IIF( 'BLOCK' $ EVAL( loColumn.ControlSource ), RGB( 255, 0, 0 ), RGB( 0, 0, 255 ) )"
>  ENDIF
>ENDFOR
>
Hi Maria:

I just tried this code but got the following VFP message:

"Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property"

Got the same message for Wilfred's idea too.

- Ravi
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform