protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
int count = Convert.ToInt32(Textbox1.Text);
if (e.Row.RowType == DataControlRowType.DataRow)
{
for (int i = 0; i< e.Row.Cells.Count; i++)
{
TextBox txt= new TextBox();
e.Row.Cells[i].Controls.Add(txt);
count++;
}
}
}
www.eggheadcafe.com/community/asp-net/17/10338247/how-to-add-new-row-with-textbox-conatrol-by-clicking-on-the-button.aspx