Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting DynamicForeColor to a container class
Message
From
25/04/2000 10:15:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Setting DynamicForeColor to a container class
Miscellaneous
Thread ID:
00363130
Message ID:
00363130
Views:
49
I have a grid that is NOT using the standard textbox under the
column. Instead, I have a container class that contains
two stacked textboxes. The top box shows the amount while the bottom
text box shows the percentage.

All this works fine but now I'd like to highlight the row in
yellow if a percentage is > 35 and in red if greater than 50.

The code below works fine when I use the default textbox that
comes with the column of a grid. However, it does not work when
the container is the currentcontrol of the column. Since I have
two textboxes for each column, I set the controlsource not at the
column but at the textbox (inside the container) level.

This.grddetails.SetAll("dynamicforecolor" , ;
"IIF(c_diltn.diltn_pct > 35 ,;
RGB(255,255,255), IIF(c_diltn.diltn_pct > 50 , ;
RGB(0,0,0), RGB(0,0,0)))", "Column")

Any ideas on how to make the row highlight when using the container class as the currentcontrol of a column?
Next
Reply
Map
View

Click here to load this message in the networking platform