Highlight GridView by clicking on it in ASP.NET
Introduction Being as an ASP.NET guy, I always wish to deliver the best apps to the client so that they call WOW!! If you want to highlight the row when user clicks on it and if he clicks again on row it removes the highlight. In this post we are going to do the same using jQuery. Look at the screenshot example. So, let's start developing such system. First of all you need to add the reference of your jQuery file in the <head> area. In my case I'm using master page so, I'll place it in ContentPlaceHolder. < script src ="../../../../Scripts/jquery-1.4.1.min.js" type ="text/javascript"></ script > Now you need to place the jQuery methods and styles to apply it in grid view. Here is the method code and styles. < script type ="text/javascript"> $(document).ready( function () { $( "tr" ).filter( function () { ...