c# table 控件用法
时间:2021-07-01 10:21:17
帮助过:46人阅读
代码如下:
for (int i = 0; i < 10; i++)
{
TableRow tblrow = new TableRow();
for (int j = 0; j < 10; j++)
{
TableCell tblcell = new TableCell();
tblcell.Text = "单元格";
tblcell.BorderWidth = 1;
tblrow.Cells.Add(tblcell);
}
tbllist.Rows.Add(tblrow);
}