Textbox function

hi, i have created a grid view in a html table in VS 2005 web form. How i want to suot generate the new next into the table as well. But it happens to dispay the new textbox out side the table. Any ideas what happen?

protectedvoid Page_Load(object sender,EventArgs e)

{

dbManager = (DBManager)Session["DBAgent"];

DataTable table;

table = dbManager.getPurchaseByID("1");

gvReceive.DataSource = table;

gvReceive.DataBind();

int rowCount = gvReceive.Rows.Count;

TextBox a =newTextBox();

TextBox [] txt=newTextBox[rowCount];

for(int i=0;i<rowCount;i++) {

txtIdea =newTextBox();

Form.Controls.Add(txtIdea);

}

[2097 byte] By [FannwongCindy] at [2007-12-22]