Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forecolor flexibility in grid
Message
From
15/01/1999 03:04:29
 
 
To
14/01/1999 23:21:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00176326
Message ID:
00176348
Views:
33
Hi Peter.

It's possible to change the colour of fonts or whatever
in columns of Grid.

See Dynamicforecolor and DynamicBackColor.

For example

Grid.Column(n).Dynamicforecolor = ;
'IIF(myTbl.sum = 6 ,RGB(255,0,0),RGB(0,0,255))'

Grid.Column(n).DynamicBackcolor = ;
'IIF(myTbl.sum = 6 ,RGB(0,0,0),RGB(255,255,255))'

The code above would make column(n)'s font color RED
and back color BLACK if myTbl.sum is 6.

Good Luck .
OCP8 DBA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform