Label
动态还是静态的?
动态的可以这样
public void InitNodes(string path,Table t)
{
int count =100;
int row=10;int col;
if(count%row==0)
{
col=count/row; }
else
{
col=count/row+1; }
for(int j=0;j<col;j++)
{
TableRow tr=new TableRow();
t.Rows.Add(tr);

for(int i=0;i<row;i++)
{
if(i*col+j<count)
{
TableCell tc=new TableCell();
tr.Cells.Add(tc);

Label lb2=new Label();

lb2.Text="jjj";

tc.Controls.Add(lb2);
}
}
}
}