Retrieving value from Datagrid texbox
Hi there
I can't seem to get this working. I have a datagrid with one single editable field. I call the update command and want to update my database with what the user has filled into the box, however, I cannot seem to get the value back from the text box, I keep getting the OLD value back.
Private Sub grd1_updatecommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles grd1.UpdateCommand
Response.Write(CType(e.Item.Cells(0).Controls(0), TextBox).Text)
End Sub
That was just to "debug" and see what was being replied.
Anyone got any idea?
|