Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: GridView

JQuery And ASP.NET Gridview

21 November, 2012 | ASP.NET, jQuery | By: Michael Adams

I was in a situation where I was expanding the functionality of an existing ASP.NET Gridview and I needed to add on-click highlighting and double-click redirecting. I was browsing the JQuery website for a general idea on what to implement when I eventually pieced this together: The JQuery: In the click function I use JQuery to set a class that will change the row background and text color to help the user identify which row was selected. In the dblclick function I use JQuery to look up an id that is stored in a template column in the gridview. That [Read More…]

Modifying the ASP.NET GridView Paging Control

29 March, 2012 | ASP.NET, C#. NET | By: Michael Merrell

The paging control that is built into the ASP.NET grid view is very handy indeed, however the template controls for the grid view leave some to be desired. If you need to add something or get more control over how the paging control is displayed it can cause a great deal of head ache trying to figure out the best way to do so. In my case I needed to add a simple text value before the paging numbers to show that they were page indicators. Below you will find the code I used to add a ‘Page’ label to [Read More…]