Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicbackColor - How do I make a grid cell colored?
Message
From
08/10/2001 07:36:09
 
 
To
08/10/2001 06:10:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565400
Message ID:
00565420
Views:
17
Hi Tim.

>> Hi, I am trying to get a grid cell in a different color.

What I really want is that there is a narrow border around the cell,
but it would be acceptable if the color was changed inside the cell.

The best I can do is change the dynamicbackcolor and forecolor using something like: <<

Which grid cell(s) and under what conditions? Generally speaking, DynamicBackcolor and DynamicForecolor are used for things like displaying all the amounts less than zero with a red background or highlighted all the selected records in the grid. What is your objective here?

For example, if you wanted to display all the negative amounts with a red background, you would put something like this in the init of your grid:
This.SetAll( 'DynamicBackColor', ;
	'IIF( MyRecordSource.MyField < 0, RGB( 255,0,0 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform