给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

posted @ 2014-03-11 15:28  happyu0223  阅读(269)  评论(0编辑  收藏  举报