Updating data from a gridview in code
-
Hi, I have this problem with a gridview from which I am tryng to update a database table. I have this handler for my Row_Updating event: Dim index As Integer = gvRecruit.EditIndex Dim row As GridViewRow = gvRecruit.Rows(index) Dim Id as Integer = Integer.Parse(row.Cells(0).Text) Dim fName As TextBox = CType(row.FindControl("txtFirstName"), TextBox) Dim firstName As String = fName.Text Dim lName As TextBox = CType(row.Cells(1).Controls(1), TextBox) Dim lastName As String = lName.Text etc... Problem is, when I step thru the code, the fName and lName still hold the old values, even though I have updated them with new ones. I think I am missing something. Can anybody help? PS I don't really do VB, but I don't think that is an issue here.
acodeisacodeisacode