HtmlTable ht
=
new
HtmlTable();
HtmlTableRow htr
=
new
HtmlTableRow();
for
(
int
i
=
1
; i
<
7
; i
++
)
{
HtmlTableCell htc
=
new
HtmlTableCell();
htc.InnerText
=
i.ToString()
+
"
行
"
;
htr.Cells.Add(htc);
}
ht.Rows.Add(htr);
this
.Panel1.Controls.Add(ht);
转载于:https://www.cnblogs.com/jxcia_Lai/archive/2009/06/23/1509409.html