Search This Blog

Thursday, January 9, 2014

Asp.net Grid view render heading tag thead instead of tbody

Asp.net Grid view render heading  tag  <thead> instead of  <tbody>


Grid View Render in <thead> tag.

Create a function or event Like 

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: