ASP.Net2.0控件-GridView(合并表头单元格)
2007-07-30 10:39
267 查看
在实际工作中,往往需要合并表格头部的单元格,下面就是一个实现的例子。运行结果如图:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>合并 GridView 的表头单元格</title>
</head>
<body>
<form id="Form1" runat="server">
<asp:GridView ID="GridView1" runat="server" CellSpacing="1" CellPadding="3"
Font-Size="12px" Width="300px" BackColor="orange" BorderWidth="0"
OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated">
</asp:GridView>
</form>
</body>
</html>
VB.NET
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>合并 GridView 的表头单元格</title>
</head>
<body>
<form id="Form1" runat="server">
<asp:GridView ID="GridView1" runat="server" CellSpacing="1" CellPadding="3"
Font-Size="12px" Width="300px" BackColor="orange" BorderWidth="0"
OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated">
</asp:GridView>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>合并 GridView 的表头单元格</title>
</head>
<body>
<form id="Form1" runat="server">
<asp:GridView ID="GridView1" runat="server" CellSpacing="1" CellPadding="3"
Font-Size="12px" Width="300px" BackColor="orange" BorderWidth="0"
OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated">
</asp:GridView>
</form>
</body>
</html>
VB.NET
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>合并 GridView 的表头单元格</title>
</head>
<body>
<form id="Form1" runat="server">
<asp:GridView ID="GridView1" runat="server" CellSpacing="1" CellPadding="3"
Font-Size="12px" Width="300px" BackColor="orange" BorderWidth="0"
OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated">
</asp:GridView>
</form>
</body>
</html>
相关文章推荐
- ASP.NET 2.0中合并 GridView 的表头单元格
- ASP.NET 2.0中合并 GridView 的表头单元格(转)
- ASP.NET 2.0中合并 GridView 的表头单元格
- ASP.NET 2.0中合并 GridView 的表头单元格
- GridView合并表头单元格
- 《ASP.NET 2.0中合并 GridView 的表头单元格》
- ASP.NET 2.0中合并 GridView 的表头单元格
- 扩展GridView控件(11) - 合并指定列的相邻且内容相同的单元格
- 在ASPNET中的Gridview控件,可以将单元格周边相同的值合并成一个单元格!能想到那种效果吗?
- VS2005合并 GridView 单元格的或表头的方法
- ASP.NET 中 GridView 的合并表头单元格,并且双行标题
- GridView、DataGrid 表头合并、表体合并[合并相邻行相同数据的单元格]
- ASP.NET 2.0中合并 GridView 的表头单元格
- ASP.NET 2.0中合并 GridView 的表头单元格
- ASP.NET 2.0中合并 GridView 的表头单元格
- 扩展GridView控件(11) - 合并指定列的相邻且内容相同的单元格
- ASP.NET 2.0中合并 GridView 的表头单元格
- ASP.NET 2.0中合并 GridView 的表头单元格
- 扩展GridView控件(11) - 合并指定列的相邻且内容相同的单元格
- 合并 GridView 的表头单元格