GridView中的thead,tbody和tfoot

GridView生成的表格中是没有thead,tfoot这样的域的,所有的行都是在tbody这个域中
private void BindData()
{
        GridView1.DataSource = source;
        GridView1.DataBind();
        GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;
        GridView1.FooterRow.TableSection = TableRowSection.TableFooter;
}
 

原文地址:https://www.cnblogs.com/darkiller/p/2716472.html