Asp Gridview Render the header row as thead and tbody:
Description:
C# code:
//This replaces <td> with <th> and adds the scope attribute
gvtabledetails.UseAccessibleHeader = true;
//This will add the <thead> and <tbody> elements
gvtabledetails.HeaderRow.TableSection = TableRowSection.TableHeader;
//This adds the <tfoot> element. Remove if you don't have a footer row
gvtabledetails.FooterRow.TableSection = TableRowSection.TableFooter;
Reference Link:
http://madskristensen.net/post/make-the-gridview-control-accessible
//This replaces <td> with <th> and adds the scope attribute
gvtabledetails.UseAccessibleHeader = true;
//This will add the <thead> and <tbody> elements
gvtabledetails.HeaderRow.TableSection = TableRowSection.TableHeader;
//This adds the <tfoot> element. Remove if you don't have a footer row
gvtabledetails.FooterRow.TableSection = TableRowSection.TableFooter;
Reference Link:
http://madskristensen.net/post/make-the-gridview-control-accessible