Al Pascual



Geo RSS
Geo Twitter Timeline

Blogs I read

<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

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:

 

image

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

Posted: Mar 03 2008, 11:12 PM by albert | with 1 comment(s)
Filed under: , , , ,

Comments

template for injections said:

Pingback from  template for injections

# May 24, 2008 1:09 AM