c# table 控件用法
來源:懂視網
責編:小采
時間:2020-11-27 22:44:30
c# table 控件用法
c# table 控件用法: 代碼如下: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.Bor
導讀c# table 控件用法: 代碼如下: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.Bor

代碼如下:
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);
}
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
c# table 控件用法
c# table 控件用法: 代碼如下: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.Bor