4
Answers

gridview row update to database

Photo of Hema

Hema

8y
321
1
i m having gridview with id,name,dept,salary ........in this all fields are binded from database..i m using  textbox for dept and salary..how to save modified particular textbox row to database

Answers (4)

1
Photo of Vijay Saklani
NA 107 9.3k 8y
Hello Hema,
 
Refer to this article
 
http://www.articlemirror.in/2015/08/gridview-add-edit-delete-and-update-record-asp.net-c-vb.net.html
 
thanks,
Vijay 
0
Photo of Munesh Sharma
NA 17.1k 2.4m 8y
http://www.c-sharpcorner.com/UploadFile/1e050f/edit-and-update-record-in-gridview-in-Asp-Net/
0
Photo of Rajeesh Menoth
NA 24.7k 629.6k 8y
Hi hema,
 
In asp gridview two things you want to know one is BoundField and another one is TemplateField.Do you want to add any control and any modification inside grid then use TemplateField.
 
Reference : 
 
http://www.aspdotnet-suresh.com/2015/07/aspnet-gridview-crud-operations-insert-select-edit-update-delete-using-single-stored-procedure-example.html 
 
 
0
Photo of Amit Singh
NA 3.7k 46.7k 8y
Use Update Query for any changes in database.
 
http://www.aspsnippets.com/Articles/Insert-Update-Edit-Delete-record-in-GridView-using-SqlDataSource-in-ASPNet.aspx