Suppose you have a GridView with multiple columns, for example:
| Foo | Bar | Total |
and you use a stylesheet so that the alternating lines are different from each other, for example, light blue and white.
Is there a good way to make a single column alternate in a different color? For example, I might want the Total column to alternate between medium and light red to draw attention to it in a large grid.
By the way, I know that you can programmatically change the color of a cell. However, I would like to stick with CSS if this is all possible, so all my style stuff is in one place. I also donβt see an easy way to determine if I get into a variable string when I'm inside an event handler.
source
share