Degeheinke
New Member
I am attempting to capture the changed values in the datagrid, but the only thing that comes back is the original value. For instance, if I change RespPerson from Larry to Larry King, e.item.cells(2).controls(0) still comes back as Larry. The following code is what I used for updating. If anyone has any ideas I would very much appreciate them.<BR><BR> Private Sub dgIssues_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles dgIssues.UpdateCommand<BR> <BR> Dim txtRespPerson As TextBox<BR> Dim txtRespOrg As TextBox<BR> txtRespPerson = e.Item.Cells(2).Controls(0)<BR> txtRespOrg = e.Item.Cells(4).Controls(0)<BR> DsEditIssue1.Issues.Rows(dgIssues.EditItemIndex).I tem("RespPerson") = txtRespPerson.Text<BR> DsEditIssue1.Issues.Rows(dgIssues.EditItemIndex).I tem("RespOrg") = txtRespOrg.Text<BR><BR> daIssue.Update(DsEditIssue1.Issues)<BR><BR> txtCellCount.Text = dgIssues.EditItemIndex<BR> dgIssues.EditItemIndex = -1<BR> dgIssues.DataBind()<BR> End SubI have played around with this a little more, and I have noticed that whenever I click the update button, the page_load function is called. This rebinds the page and overwrites my edits. However, if I do not rebind on page_load, then nothing is displayed? I am confused about how I am to get these values to persist.