gridview add edit dynamically

gridview add edit dynamically

23 Feb 2010 01:02:51
Hi all! im facing issue with datagridview.in my page three textboxes(company name,address,email),datagridview(contains contact percson,contact number,email).here.in grid i want add new row and enter contacts.then able to edit entered contacts.finaly if click on save button shuld updat into database.my issue is how to add new row and edit.can anyone help? Thanks
Fresh   Boarder
Posts: 4
From 03-Jun-2009
You're Points: 76
Bookmark
Re:gridview add edit dynamically23 Feb 2010 01:02:51
Hi This easy work, because of you can add new row programmtrically to your gridview. and then enter values to cell. then click save button read text boxs values and every rows value from the gridview and based on your key column write own method to insert or update. Here sample code to add new row programmtrically in gridview. [url]http://www.codeasp.net/articles/asp.net/67/adding-dynamic-rows-in-gridview-with-textboxes[/url] Thank you
RRaveen
Gold  Boarder
Posts: 156
From 03-Jun-2009
You're Points: 1106
Bookmark
^ Scroll to Top