When I click Update on that row it does the same thing as cancel; the page refills without saving any data changes. Hi, debig your code and check what value you are getting for str Marks at this line.Anyway I will check it and sort it out tell you Here is my defaukt1code. (may be some omissions happehed while cut/paste) //default1cs using System; using System. Once I checked Is Post Back in Row Updating event.. Find Control("txtaddress"), Text Box) Dim city As Text Box = Direct Cast(grid View.
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.
An editable Grid View contains an additional column with an Edit button in each row.
When the end user clicks on an Edit button that row becomes editable, causing the Edit button to change to Update and Cancel buttons and the other columns to become Text Boxes.
When I click Edit on a row in the gridview, it shows the data like it should.
It shows the text boxes where I expect to see them and it allows me to modify the data in the box.