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
255
How to Turn Off RowAlternateAppearance
posted

Is there a way to turn off the alternating row colors? I can't seem to find where in our code this setting is initially set. But i want to be able to turn it on/off on demand from a form.

I tried following the samples here:

http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/HTML/Infragistics2.Win.UltraWinGrid.v11.1~Infragistics.Win.UltraWinGrid.UltraGridOverride~RowAlternateAppearance.html

And also went through hours of trial and error from solutions in this forum. It just won't turn off. Even if i set the back colors to White, the even rows will be a slightly darker white.

grid.Grid.DisplayLayout.Override.RowAppearance.BackColor = Color.White;
grid.Grid.DisplayLayout.Override.RowAppearance.BackColor2 = Color.White;
grid.Grid.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.White;
grid.Grid.DisplayLayout.Override.RowAlternateAppearance.BackColor2 = Color.White;

Any ideas?