Gridview UpdateCommand

Discussion in 'ASP .Net Datagrid Control' started by Vaughn Haybittle, Apr 4, 2007.

  1. 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
    Vaughn Haybittle, Apr 4, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark

    UpdateCommand with Datalist

    Mark, Jul 17, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,407
  2. Lee Moore
    Replies:
    0
    Views:
    5,880
    Lee Moore
    Aug 18, 2005
  3. Mark B
    Replies:
    2
    Views:
    502
    Mark B
    Aug 26, 2008
  4. srathin

    DataGrid1 UpdateCommand calling DataGrid2 UpdateCommand

    srathin, Apr 9, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    164
    srathin
    Apr 9, 2005
  5. srathin

    DataGrid1 UpdateCommand calling DataGrid2 UpdateCommand

    srathin, Apr 9, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    153
    srathin
    Apr 11, 2005
Loading...

Share This Page