Hi,
Please share source code for input data in textbox & save data in new row in gridview through button click.in C# asp.net..3.5..
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sukesh MarlaPosted Aug 15, 2012, 3:46 PM
Nattudurai EswaramurthyPosted Aug 15, 2012, 11:01 AM
Please go through the following link, surely this will helpful to solve ur issue.
http://www.c-sharpcorner.com/blogs/8274/insert-data-in-grid-view-without-using-database.aspx
else
DataTable dt;
DataRow dr1 = dt.NewRow();
dr1[0] = TextBox1.Text;
dr1[1] = TextBox2.Text;
dt.Rows.Add(dr1);
GridView1.DataSource = dt;
GridView1.DataBind();
If this helps to solve ur issue, plz select it as accepted answer.
Thanks in Adavance
Sukesh MarlaPosted Aug 15, 2012, 8:57 AM
and dont forget to check this is correct answer