ASP.NET - Changing the color of the row when user clicks on it

Asked By Anjali agarwal on 09-Apr-13 06:28 PM

Hi All,

 I have a gridview, I want the row of the gridview to be turned blue when the user clicks on the row and turned to the original color if the user chooses to click on another row. so for .e,g

Col1   Col2

1     Test1
2     Test2

if the user clicks on row1 then row 1 shoud be blue, but if the user chooses to click on row2 then Row1 should come back to its original color and row2 becomes blue.

Any help will be appreciated.

Thanks.


Danasegarane Arunachalam replied to Anjali agarwal on 12-Apr-13 10:09 PM
Here is the example

http://highoncoding.com/Articles/174_Change_GridView_RowColor_OnMouseClick.aspx