I'm using the following event handler ... which is triggered.
Problem is e.Item.Cells(3).Text is getting the original value and not the value I changed it to :s any ideas why ?
Many thx.
Code:
Private Sub DataGrid1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.UpdateCommand
Dim txtTb As TextBox
txtTb = CType(e.Item.Cells(3).Controls(0), TextBox)
Me.txtFeed.Text = txtTb.Text
strCulture = "nl-BE"
Dim spId As SqlParameter
Dim spPaystate As SqlParameter
spId = New SqlParameter("@Id", e.Item.Cells(0).Text)
spPaystate = New SqlParameter("@Paystate", e.Item.Cells(3).Text)
Dim spaSqlParameters() As SqlParameter = {spId, spPaystate}
Database.EditObject("UpdPaystate", spaSqlParameters)
DataGrid1.EditItemIndex = -1
Me.FillDatagrid()
End Sub
Problem is e.Item.Cells(3).Text is getting the original value and not the value I changed it to :s any ideas why ?
Many thx.