Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I dynamically change one cell in a grid?
Message
From
09/08/2001 18:16:39
 
 
To
09/08/2001 17:38:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00542012
Message ID:
00542053
Views:
33
>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
Map
View

Click here to load this message in the networking platform