Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change backcolor of cell or row in grid based on conditi
Message
 
 
To
26/01/2017 14:00:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01647037
Message ID:
01647050
Views:
66
Likes (1)
>I have a procedure where I evaluate every field of the table and based on conditions cell or entire row should be painted in different color. when forms pops up grid should be colorful

Can you show your current code and what is not working?

Basically, you can do

thisform.grid1.column1.DynamicBackColor = "thisform.RefreshColors()"

and in the RefreshColors method of the form you would do
lnRGB = 0
do case

    case Field1 = 'Something'

       lnRGB = color number here
   case AnotherField = 'SomethingElse'
      lnRGB = different color number

  endcase

return lnRGB
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform