Recycling code: GridView custom control to change the row color on Mouse Over event
Many people still emails me about this article I posted on codeproject on May 24th 2004. I like that still people reads old articles, however I'm not that proud of that article, really, I don't want to support javascript injections on controls.
Also I am receiving many emails that they got confused with my 2 blogs, Tehre are not duplicates if you subscribe to both here. My original blog is here if you want to check all my old posts.
Many people asked me how to do that in a GridView. So the best way is to use style sheets when you customize the template. However if you still want to use my old way in javascript, here is the solution:

So in other words, just change the base class from Datagrid to GridView. You can download the code here.
Cheers
Al
Posted from
http://weblogs.asp.net/albertpascual