Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Colors of GRID in different column with criteria
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00668428
Message ID:
00668432
Views:
20
>Hi guys...
>
>got some trouble....
>but i don't know how to explain it properly... maybe i'll use some example...
>
>------------------------------------
>|  NAME   | A  | B  | C  | D | E   |
>------------------------------------
>|  JACKY  | M  | H  | M  | K | K   |
>|  LONA   | H  | K  | H  | H | H   |
>|  ERICK  | H  | M  | K  | M | M   |
>|  JAMIE  | K  | M  | H  | K | M   |
>|  ERRIN  | K  | H  | M  | K | K   |
>------------------------------------
>
>Maybe with the samples grid above i can explain it properly...
>what i try to do is to make the column with value of "M" = rgb(255,0,0)
>if the column value = "H" then rgb(0,255,0) and with K is rgg(0,0,255)
>So by that i could make some grid with a colourfull information from the table of course.....
>I've try with many things but still no prove...
>I've learn in samples solution.pjx in VFP6 in the controls with grid .... checkerboard... but it only manipulate criteria Mod(COlumnCOunt%2)...
>
>Just that it...
>Hope any one could help me quick...
>Thanks...
>
>regards,
>tut_arie
Column1.DynamicForeColor = 'iif(myTable.myField="M",255,'+ ;
'iif(myTable.myField="H",65280,16711680))'
Same for other columns but use appropriate field
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform