Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi,
It can be done by using "DynamicBackColor".
e.g.
WITH THIS.grid1
FOR i=2 TO 8
oCol=EVAL(".Column"+LTRIM(STR(i)))
oCol.DynamicBackColor="IIF(ATC('BLOCK',T1.F1)>0,RGB(255,0,0),RGB(0,0,255))"
NEXT
ENDWITH
Also see other "Dynamic" methods.
:) Wilfred
>Hi all:
>
>I have a grid displaying 8 columns. I would like to achieve the following:
>
>- columns 2-8 should display background color (say blue)
>- if the text in any of the 2-8 columns is = "*BLOCK*", then, that cell in the grid should have a backcolor of (say red), else, the backcolor should be (say yellow)
>
>Any suggestions would be appreciated. TIA
>
>- Ravi
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement