復制代碼 代碼如下:
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);
}
新聞熱點
疑難解答
圖片精選