I am having problems editing the background color of a gridview row when editing it.
The fact is that I use the RowDataBound event RowDataBound to change e.Row.BackColor based on the criteria when displaying the report (3 different colors depending on the result). For rows that do not fit these criteria, when you click the Edit button, the GridView <EditRowStyle BackColor="#999999" /> property is applied.
However, I cannot find a way to change the color of those that fall under the criteria, since the RowDataBound seems to be called all the time, overriding any changes I make.
Any suggestions?
source share