I think this will help you
<asp:Table runat="server" ID="table1" Width="40%" GridLines="Both" BackColor="white">
</asp:Table>
TableRow trow = new TableRow();
TableCell tcellcolname = new TableCell();
tcellcolname.Text = "column header";
tcellcolname.Controls.Add(new TextBox());
trow.Cells.Add(tcellcolname);
table1.Rows.Add(trow);