Wednesday 23 May 2012

How to set alternative row color of Gridview using jQuery in Asp.net


$(document).ready(function(){
$("#<%=GridView1.ClientID%> tr:even").css("background-color","Lightgrey"); 

$("#<%=GridView1.ClientID%> tr:odd").css("background-color","Green");
});

2 comments:

  1. You can find more tips related with jQuery and GridView at
    http://jquerybyexample.blogspot.com/search/label/GridView

    ReplyDelete