Gridview rowupdating example c

Page Private con As New Sql Connection("Data Source=.; Initial Catalog=pubs; User ID=sa; Password=*****") Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load If Not Is Post Back Then load Stores() End If End Sub Protected Sub load Stores() con.

Then have a seperate function to update the values entered and finally call your Bind Grid() function which again binds the gridview.. Find Control("txtname"), Text Box) Dim stor_address As Text Box = Direct Cast(grid View. Find Control("txtaddress"), Text Box) Dim city As Text Box = Direct Cast(grid View. This example shows how to edit and update records in a Grid View in ASP. This example is helpful in situations where an administrator needs to edit several records from the database.For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.