Hi ,
Check this
int i = 1;
foreach (string item in lst)
{
TableRow tr = new TableRow();
TableCell tc = new TableCell();
TableCell col2 = new TableCell();
Label lb = new Label();
lb.Text = item;
TextBox tb1 = new TextBox();
tb1.ID = "txt"+i;
tb1.Text = "col2";
string ids = string.Format("lb{0}", i);
lb.ID = ids;
tc.Controls.Add(lb);
col2.Controls.Add(tb1);
tr.Controls.Add(tc);
tr.Controls.Add(col2);
Table1.Controls.Add(tr);
i++;
}
Best Regards
M.Mitwalli