Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2549
ValueBasedAppearance and ValueList
posted

Hi all,
I currently have an unbound column (int) in a WinGrid.
I bind a ValueList to the ValueList property of this column that is created from an enumerator (value = int, text = string)
Additionally I added a ValueBasedAppearance to the column where I provided the value from the enumerator to be of a certain color. 

10 = red
20 = blue
etc.

Now if I fill the column without binding the ValueList in the first place the ValueBasedAppearance works fine.
But with the ValueList bound to the column it doesn't.
It works if I change the ValueBasedAppearance to the rextual representation of the ValueList though like this:

"invalid" = red
"unknown" = blue
etc.

Is there a way to use the integer based values for the ValueBasedAppearance instead of the textual one? This might be important due to the localization that occurs when creating the ValueList from the enumerator. I would have to create a lot of conditions or move the creation of the ValueBasedAppearance to the code.

Any help is kindly appreciated,
have a great week
Andy