首页 > 编程 > C# > 正文

c# table 控件用法

2020-04-24 22:07:50
字体:
来源:转载
供稿:网友
代码如下:
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);
}

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表