Well, I obviously didn’t give the correct Google query, otherwise I would have known about it. I hope someone on this forum can help me.
So, I have a datatable that I am adding datareader based rows that get their information from an SQL query executed on the database. So far, so good. Now one of these columns is called “analysis”, and I need its background color to be green if the previous two columns match, and red otherwise.
If I cannot touch the background color, I would like to add a special character, any javascript that is not interpreted as text.
Simply put, I would like css to control the gridview from codebehind. I looked and looked to no avail. I found this guy, but I did not check if his solution worked on the ASP.Net/C# website. Any ideas?
c # css gridview code-behind
Freakishly Jun 30 '10 at 4:20 2010-06-30 04:20
source share