asp.net gridview not showing sort ability
asp.net gridview not showing sort ability
I've created a datatable from my asp.net gridview controls table. The table does have the required thead and tbody elements. However I get no sorting on my header items. I do get the number of entries drop down and the search textbox and I'm also even able to add the filtering by drop down functionality to my table's footer. However for some reason the sorting buttons are missing. Any ideas?
This discussion has been closed.
Replies
Allan
Also I'm trying to add the drop down based filtering to my header row or maybe the first row in my body. Right now because I only have one row in my header when I turn on datatable's filtering functionaility I get the filtering drop down's and they work great, but my header titles are overwritten by those same drop downs. Thanks again!
Second point - like this but in the header: http://datatables.net/examples/api/multi_filter_select.html ? Just move the select elements to a second TR element in the THEAD and use TD elements for the cells rather than TH (to stop DataTables using them for sorting).
Allan