change the header text colour on mouseover?

reder

Member
Joined
Oct 2, 2008
Messages
8
Programming Experience
3-5
I need to do now is to change the GridView header text colour on mouseover and set it back to white on mouseout.

Any ideas? Plenty of information on changing row colour available but nothing on header text.
 
Last edited by a moderator:
You should be able to use the GridView.RowDataBound Event to change the header text. Similar to the example you can check if e.Row.RowType is Header. The header text should probably use a Span html tag that attaches to some client Javascript code for JavaScript onmouseover Event, with the JS code you can change the backcolor style of header tag element you have defined.
 
Back
Top