Hello,
That's probably the dumbest question I have asked here, but I'm stuck and I have tried everything I can think of. Here is my problem. I have a grid for which I want to set up an ActiveRowAppearance that only modifies the FontData because my rows have specific back colors that I don't want to override. Yet, I keep having a blue background on the active/selected rows, which seems to be linked to my Windows XP theme (if I change the theme to green, the back color also changes to green).
I have created a new grid to test, reset ALL appearances on the grid, turned off UseOSThemes, set the BackColor for ActiveRowAppearance to transparent, etc. Nothing helped! I can produce a sample if needed.
Thanks in advance for your help,
Damien
Apparently, it also doesn't work with ConditionalAppearances! The only way I found to make it work properly is to set my appearances in the InitializeRow event.
Best regards,
Hi Mike,
Thanks a lot for your reply and for pointing me to this post! I searched the forum several times, but I never came across this one...
With your sample, I managed to get the result I wanted, but I have had to make two additions in the DrawElement function:
I also had another issue that I couldn't solve (but I found a workaround): the appearances defined in the grid's DisplayLayout.Override are not taken into account by this DrawFilter, so for instance I need to define row appearances in a function handling InitializeRow event.
I hope this will help someone.
Hi Damien,
It's not a dumb question. It's actually impossible to turn off the selected BackColor. The grid resolves to an ultimate default based on the system settings.
You should Submit a feature request to Infragistics that a property be added to turn this off.
For now, you can get around this using a DrawFilter. This thread should help.
DrawFilter for Backcolor - Infragistics Forums