Gridview UpdateCommand

  • Thread starter Vaughn Haybittle
  • Start date
V

Vaughn Haybittle

Hi,

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
gridview)
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.

TIA

Vaughn
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top