给GridView头添加多行表头

HeaderCell=newTableCell();HeaderCell.Text="Employee";HeaderCell.ColumnSpan=2;HeaderGridRow.Cells.Add(HeaderCell);

please check out the link for more information:

How to add Header and Subheader in Gridview

http://www.aspsnippets.com/Articles/Merge-Merging-GridView-Header-Columns-Cells-by-adding-Multiple-Headers-Header-Row-in-ASPNET.aspx

How to create multiple row header and merge it with other columns in GridView

http://www.dotnettwitter.com/2010/12/how-to-create-multiple-row-header-and.html

原文地址:https://www.cnblogs.com/happy-Chen/p/3594046.html