Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cells in grid with different colours
Message
 
 
To
27/10/2004 09:06:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00954820
Message ID:
00954828
Views:
18
>I hve tried DynamicBackColor/DynamicForeColor but in this way it is possible only two colours I need at least 10 colours. The colour of the cell is controled by a bdf field

You can have as many colors as you want.
* grid Init
* nColor is a column in the grid recordsource with stored color for that row
WITH This.Column2
  .DynamicBackColor = "IIF( Empty(nColor), RGB(128,128,128), nColor)"
  * or
  .DynamicForeColor = "IIF( Empty(nColor), RGB(128,128,128), nColor)"
ENDWITH
You can set those properties in the Properties Sheet, as well.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform