如此在 thead 標籤內的 th 可以排序。
參數設定:http://tablesorter.com/docs/#Configuration
如果要將GridView輸出時加入 thead 或 tfoot 標籤
protected void GridView1_PreRender(object sender, EventArgs e)
{
if (GridView1.Rows.Count > 0)
{
GridView1.UseAccessibleHeader = true;
GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;
GridView1.FooterRow.TableSection = TableRowSection.TableFooter;
}
}
沒有留言:
張貼留言