Hello use this code .........
Table table = new Table();
table.ID = "Table1";
Page.Form.Controls.Add(table);
for (int i = 0; i < 10; i++)
{
TableRow row = new TableRow();
for (int j = 0; j < 1; j++)
{
TableCell cell = new TableCell();
Label lbl = new Label();
lbl.ID = "Name"+(i+1);
lbl.Text = i.ToString();
cell.Controls.Add(lbl);
TextBox tb = new TextBox();
tb.ID = "txtBox1" + i.ToString();
RequiredFieldValidator reqfldVal = new RequiredFieldValidator();
reqfldVal.ID = "RequiredValidator" + i;
reqfldVal.ControlToValidate = "txtBox1" + i;
reqfldVal.ErrorMessage = "Not Empty";
reqfldVal.SetFocusOnError = true;
cell.Controls.Add(tb);
row.Cells.Add(cell);
}
table.Rows.Add(row);
}