General information
Category:
Forms & Form designer
>Re: the Dynamically changing colors in a gris:
>
>Hey! I found another way and it works like a charm:
>
>In the AfterRowColChangeEvent of the grid I wrote this:
>
>IF THIS.VALUE="Free"
> THIS.column3.text1.BACKCOLOR=RGB(0,255,0)
> THIS.column3.text1.SELECTEDBACKCOLOR=RGB(0,255,0)
>
>ELSE
> THIS.column3.text1.BACKCOLOR=RGB(255,0,0)
> THIS.column3.text1.SELECTEDBACKCOLOR=RGB(255,0,0)
>ENDIF
>
>The SelectedBackColor line is so that it works even when you move from field to field with the arrow keys.
Cool. Does that change all the rows, too?
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