Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Gridview UpdateCommand

Thread Tools

Gridview UpdateCommand

Vaughn Haybittle
Posts: n/a

I have a Gridview that binds to a SQL Server 2000 Database Table.

I have configured the SelectCommand, UpdateCommand, InsertCommand and
DeleteCommand of the SQL DataSource. All of these commands work except the
Update Command. The SQL for the Update Command is as follows: "UPDATE
tblInductionVenues SET inv_venue=@inv_venue WHERE inv_uid=@inv_uid"

I have the following questions:
1) Do I need to manually configure the parameters in the Command and
Parameter Editor (VS 2005), or should the fact that they are named according
the the
convention above be enough for them just to work?
2) If I do need to manually configure the parameters then how do I get a
handle on the textbox that appears when the gridview is in edit mode (I know
how to specify the inv_uid by setting it to the selectedvalue of the
3) Why is it that my DELETE and SELECT Commands work perfectly but not my
UPDATE command
4) Is there any way to debug what is happening while the SqlDataSource is
executing my UpdateCommand SQL (I know that I can use the updating and
updated events just before and after the update, but I want to capture
exectly what happens during the update)

Any advice would be appreciated.



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
Does Gridview UpdateCommand recognize IF? Mark B ASP .Net 2 08-26-2008 06:51 AM
Gridview Updatecommand ControlParameter Problem Lee Moore ASP .Net 0 08-18-2005 09:21 PM
DataGrid1 UpdateCommand calling DataGrid2 UpdateCommand srathin ASP .Net Web Controls 2 04-10-2005 11:07 PM
DataGrid1 UpdateCommand calling DataGrid2 UpdateCommand srathin ASP .Net Datagrid Control 0 04-09-2005 03:05 AM
UpdateCommand with Datalist Mark ASP .Net 2 07-17-2003 08:51 PM