J
Jim Whipkey
I am using an edit, cancel update button column in a
datagrid. When a user clicks edit all the columns in the
row change to textboxes. So far so good.
The user then changes the contents of one of these boxes
and clicks update.
I use the code below to try and capture the new text into
the tbX.Text property but the OLD text is always
presented. Can anyone tell me what I'm doing wrong? If I
look at the Request.Form information I see the NEW text
but DataGridCommandEventArgs seems to be ignoring the
change and providing the OLD text.
Private Sub DataGrid2_UpdateCommand(ByVal source As
System.Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles DataGrid2.UpdateCommand
Dim tbX As TextBox = CType(e.Item.Cells(5).Controls
(0), TextBox)
DataSet11.ATEducation(e.Item.ItemIndex)("School")
= tbX.Text
End Sub
This is the first time I've tried this so I'm hoping it's
something simple I've overlooked.
Thanks for any help you can provide.
Jim
datagrid. When a user clicks edit all the columns in the
row change to textboxes. So far so good.
The user then changes the contents of one of these boxes
and clicks update.
I use the code below to try and capture the new text into
the tbX.Text property but the OLD text is always
presented. Can anyone tell me what I'm doing wrong? If I
look at the Request.Form information I see the NEW text
but DataGridCommandEventArgs seems to be ignoring the
change and providing the OLD text.
Private Sub DataGrid2_UpdateCommand(ByVal source As
System.Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles DataGrid2.UpdateCommand
Dim tbX As TextBox = CType(e.Item.Cells(5).Controls
(0), TextBox)
DataSet11.ATEducation(e.Item.ItemIndex)("School")
= tbX.Text
End Sub
This is the first time I've tried this so I'm hoping it's
something simple I've overlooked.
Thanks for any help you can provide.
Jim