CSS compatible adapters for ASP.NET are great for creating markup that is easy to erase. The great advantage of the GridView adapter is that it generates the THEAD, TBODY, and TFOOT tags that allow you to do really interesting things with libraries like jQuery - for example, Tablesorter for client-side sorting.
The problem is that it seems to be global on / off for adapters via the CSSFriendlyAdapters.browser file. What should I do if I already have many GridViews that are currently being produced and just want to use friendly CSS adapters for the new?
So, I would be interested in two types of solutions:
1) A way to expand or modify the GridView (a new tag is acceptable) to display the THEAD and TBODY tags.
2) A way to conditionally apply or disable custom CSS adapters.
source
share