Adding proper THEAD sections to a GridView
Posted by: Rick Strahls WebLog,
on 19 Nov 2010 |
View original | Bookmarked: 0 time(s)
Im working on some legacy code for a customer today and dealing with a page that has my favorite friend on it: A GridView control. The ASP.NET GridView control (and also the older DataGrid control) creates some pretty messed up HTML. One of the more annoying things it does is to generate all rows including the header into the page in the <tbody> section of the document rather than in a properly separated <thead> section. Heres is typical GridView generated HTML output: <table class="tablesorter...