General information
Category:
Forms & Form designer
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only