G
Guest
Hi ,
My data grid fills fine, but when I try to Edit the cells, I cannot pick
up my new changes. As an example e.Item.Cells(6).Controls(0) will pick up the
existing text value in the debug window, but not any new additions to that
value . I.E. I see the existing Name "Mike" frm my dataset, but not "MikeG"
in debug mode (I added "G" in edit mode.)
I have put a Edit/Update Cancel Button on my datagrid with the following code
in the grid update event handler.
' Gets the value of the TextBox control in the seventh column - Area
tb = CType(e.Item.Cells(6).Controls(0), TextBox)
lsarea = tb.Text
' Gets the value the TextBox control in the eigth column - Reporter
tb = CType(e.Item.Cells(7).Controls(0), TextBox)
lsreporter = tb.Text
In the dtsgridHelpDeskData.UpdateCommand event handler.
The following code is in the dtsgridHelpDeskData.EditCommand event handler:
dtsgridHelpDeskData.EditItemIndex = e.Item.ItemIndex
dtsgridHelpDeskData.DataBind()
I double cheked everything. Any insight would be helpful!
Thanks,
MikeG
My data grid fills fine, but when I try to Edit the cells, I cannot pick
up my new changes. As an example e.Item.Cells(6).Controls(0) will pick up the
existing text value in the debug window, but not any new additions to that
value . I.E. I see the existing Name "Mike" frm my dataset, but not "MikeG"
in debug mode (I added "G" in edit mode.)
I have put a Edit/Update Cancel Button on my datagrid with the following code
in the grid update event handler.
' Gets the value of the TextBox control in the seventh column - Area
tb = CType(e.Item.Cells(6).Controls(0), TextBox)
lsarea = tb.Text
' Gets the value the TextBox control in the eigth column - Reporter
tb = CType(e.Item.Cells(7).Controls(0), TextBox)
lsreporter = tb.Text
In the dtsgridHelpDeskData.UpdateCommand event handler.
The following code is in the dtsgridHelpDeskData.EditCommand event handler:
dtsgridHelpDeskData.EditItemIndex = e.Item.ItemIndex
dtsgridHelpDeskData.DataBind()
I double cheked everything. Any insight would be helpful!
Thanks,
MikeG