I have a datagird with the edit feature enabled.
When the update command is fired the text property of the textbox in the datagrid column is empty though there is text there.
I have included the EditCommand and UpdateCommand subs for you to see.
In UpdateCommand strText is always = ""

Please Help
VB Code:
  1. Private Sub dgrSelected_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgrSelected.EditCommand
  2.  
  3.         dgrSelected.EditItemIndex = e.Item.ItemIndex
  4.         dgrSelected.DataSource = m_dvwData
  5.         dgrSelected.DataBind()
  6.     End Sub
  7.  
  8.     Private Sub dgrSelected_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgrSelected.UpdateCommand
  9.  
  10.         Dim strText As String
  11.         Dim txtText As New TextBox  '= CType(e.Item.Cells(4).Controls(0), TextBox)
  12.         txttext = CType(e.Item.Cells(4).Controls(0), TextBox)
  13.         strText = txtText.Text
  14.  
  15.         dgrSelected.EditItemIndex = -1
  16.         dgrSelected.DataSource = m_dvwData
  17.         dgrSelected.DataBind()
  18.     End Sub