Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set the grid cell
Message
From
23/06/2005 11:56:44
 
 
To
23/06/2005 11:40:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01025757
Message ID:
01025898
Views:
11
Compare your code to mine! When you ask for one color, you get one color!!!! And that's what you have done!
thisform.grd1.column2.DynamicBackColor='iif(field='xxx',RGB(255,64,64),RGB(255 ,255 ,255 ))' 
thisform.grd1.column2.SPARSE=.F.
thisform.grd1.refresh()
Please note that this is ALL the code you need in the command button. And don't change the first line, except for other color values!

>For to understund I added a command butoon on the form, on the click event, I added the following code:
>select crsrgrd
>scan
>	if alltrim(crsrgrd.field)='xxx'
>		thisform.grd1.column2.dynamicbackcolor='rgb(125,112,23)'
>		thisform.grd1.column2.SPARSE=.F.
>		thisform.grd1.refresh()
>	endif
>endscan
>When I click all the column color changed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform