Information générale
Catégorie:
Gestionnaire d'écran & Écrans
You can use the second 'iif' statement:
"IIF(items.secondary, RGB(193,255,255),iif(condition,RGB(..), RGB(255,255,255)))"
If you need still more 'iif', you can add method that set color based on complicated conditions.
>>>>>>>>>>>>>>>>>>>>>>>>>>..your message below.............
I have a grid with 14 columns. The backcolor of 4 of the columns is grey. Now I need to set the backcolor of the other 10 columns dynamically based on data. In the init of the grid I have:
This.SetAll("DynamicBackColor", "IIF(items.secondary, RGB(193,255,255),RGB(255,255,255))", "Column")
But of course this sets the columns that should be grey to white. I cannot figure out how to write the code to account for those 4 columns and keep they grey.
Any suggestions?
TIA!
Précédent
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