DataTable Dt = new DataTable(); //Define In Globle
DataRow dr = Dt.NewRow();
dr["ColumnName"] = "Your Value";
Dt.Rows.Add(dr);
grid.DataSource = Dt;
grid.DataBind()
But i want to have test box to the newly created row and the text which i have entered the that should be stored in my datbase ;
please help me
But i want to have test box to the newly created row and the text which i have entered the that should be stored in my datbase ;
please help me
Abhay ShankerPosted May 26, 2014, 11:11 PM
http://www.aspsnippets.com/Articles/Adding-Dynamic-Rows-in-ASP.Net-GridView-Control-with-TextBoxes.aspx