Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the backcolor in a Grid
Message
De
09/01/2002 17:03:35
 
 
À
09/01/2002 13:35:08
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00602300
Message ID:
00602707
Vues:
26
Hello Ravi.

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

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


As an alternative to entering this into the DynamicBackColor for each column in the property sheet, this code in the grid's Init works:
LOCAL lcBackColor
FOR EACH loColumn IN This.Columns
  IF loColumn.ColumnOrder > 1
    IF TYPE( loColumn.ControlSource ) = 'C'
	lcBackColor = "IIF( 'BLOCK' $ " + loColumn.ControlSource + ", RGB( 255, 0, 0 ), RGB( 0, 0, 255 ) )"
        loColumn.DynamicBackColor = lcBackColor
    ENDIF
  ENDIF
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform