利用jQuery实现固定表头,
protected void GridView1_PreRender(object sender, EventArgs e)
{
ScrollT.UseAccessibleHeader = true;
ScrollT.HeaderRow.TableSection = TableRowSection.TableHeader;
}
{
ScrollT.UseAccessibleHeader = true;
ScrollT.HeaderRow.TableSection = TableRowSection.TableHeader;
}
具体代码如下: