Rowupdating get textbox value

Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System.

Here we can update Name, Emp_Code and Emp_Age fields depending on the Id field of the "EMPLOYEE" table. If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method. Count ----------- The most common problem for losing new data entered while updating a Grid View or Data Grid is that you are resetting the Data Source for the Grid View or Data Grid in the Page_Load method. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. New Edit Index 'Bind data to the Grid View control. Bind Data() End Sub Private Sub Create Data Table() Dim cmd As New System. Dim dt = CType(Session("dt"), Data Table) 'Update the values.