web 3.0

jQuery and Asp.Net Gridview

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.

Currently rated 2.6 by 5 people

  • Currently 2.6/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Categories: .Net | Visual Studio | Tips and Tricks | jQuery

Bookmark and Share
Comments are closed