Asp.net Grid view render heading tag <thead> instead of <tbody>
Grid View
Render in <thead> tag.
protected void
GridView1_DataBound(object sender, EventArgs e)
{
if (GridView1.HeaderRow != null)
{
GridView1.UseAccessibleHeader = true;
GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;
}
}
Still if you got any error like
Error:
“The table must contain row sections in order of header, body,
then footer”
Problem : PagerSettings-Position="TopAndBottom"
Solution : PagerSettings-Position="Bottom"
No comments:
Post a Comment