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
170
ActiveRow appearance is transparent
posted

I have implemented a DrawFilter which causes my cells with errors to have their backcolor drawn as red. The cells which have errors should have red backgrounds with black text. However, it seems that the Active Row color is "laying over" the actual cell and is semi-transparent, causing my cells actual color to be reddish orange, and the text to be a grey orange.

How can I stop the ActiveRow's selection color from being drawn on top of my cell? And even on the non-error cells, I want my text to be black, not grey orange.

Here is my DrawElement implementation (executing upon the CellUIElements DrawPhase.BeforeDrawBackColor):

AppearanceData appearanceData = new AppearanceData() { BackColor = Color.Red };
drawParams.DrawBackColor(ref appearanceData, drawParams.Element.Rect, drawParams.InvalidRect, true);
return true;

To be clear, I don't want the active row appearance to be displayed at all within cells which have errors. I am on vs. 7.2 and don't have access to the ActiveAppearance and ActiveAppearancesEnabled properties.

Parents Reply Children
No Data