If you would like to use some JQ libraries as Datables with asp.net gridview , you have to make it generating thead and tboy. You should add this code :
protected void Page_PreRender(object sender, EventArgs e)
{
if (this.GridUsers.Rows.Count > 0)
{
GridUsers.UseAccessibleHeader = true;
GridUsers.HeaderRow.TableSection = TableRowSection.TableHeader;
GridUsers.FooterRow.TableSection = TableRowSection.TableFooter;
}
}
protected void Page_PreRender(object sender, EventArgs e)
{
if (this.GridUsers.Rows.Count > 0)
{
GridUsers.UseAccessibleHeader = true;
GridUsers.HeaderRow.TableSection = TableRowSection.TableHeader;
GridUsers.FooterRow.TableSection = TableRowSection.TableFooter;
}
}