Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Datagrid edit - whare are the changed values?

Thread Tools

Datagrid edit - whare are the changed values?

Posts: n/a
I have a datagrid with 3 bound columns, two of them editable. The problem is
when in edit mode, I just can't access the values I typed into the 'new' text
boxes. Whatever I type in is not available to be used as update parameters
in my sql.

For instance, the three strings below (strUserName, strFullName, strPhone)
return the Values of the field BEFORE edit mode. I have no way to extract
the values I type during edit.

protected void dGrid_Update(object sender, DataGridCommandEventArgs e)
string strUserName = e.Item.Cells[1].Text;
string strFullName = ((TextBox)e.Item.Cells[2].Controls[0]).Text;
string strPhone = ((TextBox)e.Item.Cells[3].Controls[0]).Text;

DoUserUpdate(strUserName, strFullName, strPhone); //call method to
update Oracle table
dGrid.EditItemIndex = -1;
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
Edit All Function for DataGrid, and Moving the Edit Function in a DataGrid Schultz ASP .Net 3 02-14-2005 04:47 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM
copying value of DDL in a Datagrid "pre-edit command" to value in "post edit command" San Diego Guy ASP .Net 0 08-07-2003 08:59 PM