Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set the grid cell
Message
 
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:
01025895
Views:
20
>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.

This must be:
thisform.grd1.column2.dynamicbackcolor= [IIF(alltrim(crsrgrd.field)='xxx',rgb(125,112,23),RGB(your_normal_RGB_cbackColor_Here))]
thisform.grd1.column2.SPARSE=.F.
thisform.grd1.refresh()
W/o any SCANs
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform