http://blog.csdn.net/net_lover/archive/2006/09/27/1291818.aspx
GridView合并表头多重表头无错完美版(以合并3列3行举例)
前台:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head runat="server">
<title>GridView合并多重表头表头 清清月儿http://blog.csdn.net/21aspnet
</title>
</head>
<body >
<form id="form1"
runat="server">
<div >
<asp:GridView ID="GridView1"
runat="server"
CellPadding="3"
OnRowEditing="GridView1_RowEditing"
OnRowUpdating="GridView1_RowUpdating"
OnRowCancelingEdit="GridView1_RowCancelingEdit" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
Font-Size="12px" OnRowCreated="GridView1_RowCreated"
>
<FooterStyle BackColor="White" ForeColor="#000066"
/>
<Columns>
<asp:CommandField HeaderText="编辑"
ShowEditButton="True" />
<asp:BoundField DataField="身份证号码" HeaderText="编号"
ReadOnly="True" />
<asp:BoundField DataField="姓名" HeaderText="姓名"
/>
<asp:BoundField DataField="出生日期" HeaderText="邮政编码"
/>
<asp:BoundField DataField="起薪" HeaderText="起薪"
/>