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
680
Override Cell/Row Selected/Highlighted Appearance
posted

Hi

I have a grid that the user is entering information into.

 

If one of the values is set a certain way we highlight a cell that needs attention by changing its background colour.

If however the row is selected/highlighted all custom background formatting is not visible so the user is unable to see that a cell has been highlighted.

How do I either turn off the highlighting of a row or override the highlighting with my background at run time

None of the below appear to work in the initialize row event:

 

e.Row.Cells["Weight"].Appearance.BackColor = Color.Tomato;

e.Row.Cells["Weight"].Appearance.BorderColor =  Color.Khaki ;

 e.Row.Cells["Weight"].SelectedAppearance.BackColor = Color.Purple;

 e.Row.Cells["Weight"].SelectedAppearance.BorderColor2 = Color.RoyalBlue;

e.Row.Cells["Weight"].ActiveAppearance.BackColor = Color.Green;

 e.Row.Cells["Weight"].ActiveAppearance.BorderColor2 = Color.RoyalBlue;

e.Row.Appearance.BackColor = Color.Orange;

 e.Row.Band.Override.SelectedCellAppearance.BackColor = Color.Lime;

e.Row.Band.Override.SelectedRowAppearance.BackColor = Color.Lavender;

 e.Row.Band.Override.ActiveCellAppearance.BackColor = Color.Lime;

e.Row.Band.Override.ActiveRowAppearance.BackColor = Color.Lavender;

e.Row.Band.Override.ActiveRowAppearance.BackColor = Color.Coral;

e.Row.Band.Override.ActiveRowCellAppearance.BackColor = Color.Lime;

e.Row.Band.Override.ActiveRowCellAppearance.BackColor2 = Color.Lime;

e.Row.Band.Override.ActiveCellAppearance.BackColor2 = Color.Lavender;

 

Parents Reply Children
No Data