Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coloring grid cells
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01510768
Message ID:
01510777
Views:
53
My problem is to highlight a single cell depending on a certain event.
I have a list of terminal which have to upload and download data. I wanted to colour by green the download cell of the terminal if it downloaded data, by red if it is working and by white if it had no data do download and the same regarding the upload.
thanks again
>>>mygrid.column1.dynamicbackcolor="iif(somecondition,rgb(50,255,0),rgb(255,255,255))"
>>this command colors the whole column. I need a single color to be coloured. What if I wanted to have a chess board in a grid ?
>
>you have to use the somecondition part to get whatever pattern you want.
>
>For example, grid bound to a cursor could achieve chessboard pattern with something like:
>
>
>mygrid.column1.dynamicbackcolor="iif(mod(recno('mycursor'),2)=0,rgb(0,0,0),rgb(255,255,255))"
>mygrid.column2.dynamicbackcolor="iif(mod(recno('mycursor'),2)=1,rgb(0,0,0),rgb(255,255,255))"
>mygrid.column3.dynamicbackcolor="iif(mod(recno('mycursor'),2)=0,rgb(0,0,0),rgb(255,255,255))"
>mygrid.column4.dynamicbackcolor="iif(mod(recno('mycursor'),2)=1,rgb(0,0,0),rgb(255,255,255))"
>
>
>Don't forget to set Sparse to .F.
Previous
Reply
Map
View

Click here to load this message in the networking platform