General information
Category:
Coding, syntax & commands
Title:
Setting DynamicForeColor to a container class
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only