自动填充固定行数的 GridView
作者:佚名 文章来源:CSDN 更新时间
:2007-5-30 15:38:44
(int j = 0; j < numCols; j++)
{
TableCell cell = new TableCell();
cell.Text = " ";
row.Cells.Add(cell);
}
GridView1.Controls[0].Controls.AddAt(numCount + 1 + i, row);
}
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>自动填充固定行数的 GridView</title>
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound"
Font-Size="12px" CellPadding="3">
<HeaderStyle BackColor="#EDEDED" />
<Columns>
<asp:TemplateField HeaderText="模版列">
<ItemTemplate>
<%#Eval("学生姓名") %>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</form>
</body>
</html>
{
TableCell cell = new TableCell();
cell.Text = " ";
row.Cells.Add(cell);
}
GridView1.Controls[0].Controls.AddAt(numCount + 1 + i, row);
}
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>自动填充固定行数的 GridView</title>
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound"
Font-Size="12px" CellPadding="3">
<HeaderStyle BackColor="#EDEDED" />
<Columns>
<asp:TemplateField HeaderText="模版列">
<ItemTemplate>
<%#Eval("学生姓名") %>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</form>
</body>
</html>
【相关文章:】
讲解Windows XP无人值守自动安装
让Windows%20XP自动关机
得到刚刚插入的记录的自动编号值一例
网页自动跳转代码收集
ASPHttp使用范例-远程读取别人的页面,并自动写入库
搜索引擎优化—“自动转向”技术
网页自动刷新代码
【发表评论】【打印此文】【关闭窗口】【点击数: 】
