I have a grid that is informational only. Based on other entries on the form, I'm coloring individual cells in the grid to hightlight issues with the data. This all works great, EXCEPT, the active row appearance messes up my pretty cell coloring.
So in effect what I want is for the activerow to have NO formating whatsoever.
I have tried transparent, but that seem to just bring through the Grid background color.
I can capture the row color in the BeforeRowActivate and set the ActiveRowAppearance so that all of the cells have the same back color.
But I CANNOT seem to control each cell in the ActiveRow appearance seperately.
I'm looking for something like ActiveRowAppearance = DO NOT CHANGE or USE INACTIVE ROW APPEARANCE...
Thoughts?
Dan
If you are creating the grid at run-time, then the articles link here does not apply.The default ActiveRowAppearance gets applied by a preset which is loaded by the grid designer. If the grid is never on the form at design-time, then there is no designer and therefore no preset. So the appearance must be coming from somewhere else in your case. The question is.. where is it comeing from.
Are you loading a preset at run-time?
Are you loading a layout?
Are you loading an application style?
Yeah I read that article. And I tried to get it to work. But nothing I tried worked. I'm setting this grid up in code and so I'm trying not to use the designer to do anything on the grid. So when I read that article, I did a .activerowappearance.reset. Still had a blue selection background. There does not seem to be a Color.Default selection?
Do you have any idea what the "default" row background settings are? It sure seems to be a little more complex than a setting. My reasoning, the control is going to change the background color when the row is activated. Even if it is set to "Default", it is going to be some color other than what I made up for that particular row.
I know the control is saving the "orginal" appearance, somewhere, because when you leave the row it sets it back to the pre-"active" state.
What am I missing????
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.