ASP1 DataGrid Cannot Update /Read entered cell value.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top