Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement