I have succesfully used ValueBasedAppearance to conditionally change the colors in cells. The problem is that when the row where this cell lives is activated, the Appearance takes over and I lose the formatting. This goes back to normal as soon as another row is selected but my users are requesting that at least the ForeColor of those cells stays the same.
Does anybody know how to achieve this? I am using 2007.1
Thanks!
Sebastian
HOWTO:How can I have Selected cells in a grid maintain their forecolor?
DrawFilter for Backcolor - Infragistics Forums
Mike,
I'm almost there. The problem is that the KB code I got overrides with the cell appearance, but that appearance doesn't take into account the ValueBasedAppearance applied. I tried to use "Resolve Appearance" to get to the actual ForeColor being used but there are two properties
(ByVal dataValue As Object, _ ByVal context As IConditionContextProvider)
that I don't know how to fill. I looked in the forms and in the help but can't find anything useful.
Any help is greatyl appreciated.
Thanks Mike, I'll take a look and get back here if there are more issues.