From my old blog, May 26, 2009. No longer maintained.

jQuery and Asp.Net Gridview

The original is on archive.org.

So you have a fancy jQuery table sorter that you want to use but just realized, or thought you knew, that the Gridview control does not render the thead tags.  Guess what ,it does!  You just have to add this tidbit of code in your codebehind before the prerender event and viola!

GridView1.HeaderRow.TableSection = TableRowSection.TableHeader

This will render the thead and you are all ready to go with that new little jQuery toy you just downloaded.

All old blog posts