0
如何在添加每個控件後添加新行?我添加的控件是一個表格單元格。添加新控件後添加新行
for (int i = 0; i < 60; i++)
{
CheckBox cb = new CheckBox();
cb.ID = "MitchelF" + i.ToString();
Label lbl = new Label();
lbl.Text = "MitchelF";
lbl.Font.Size = new FontUnit("18px");
lbl.ID = "MitchelF" + i.ToString();
cellUsersPool.Controls.Add(cb);
cellUsersPool.Controls.Add(lbl);
}
對不起,謝謝! –