Dynamic SQLDataSource with Gridview - Update Parameters

Discussion in 'ASP .Net' started by OceanTragic, Nov 14, 2006.

  1. OceanTragic

    OceanTragic Guest

    I have a sqldatasource and a gridview on my page, everything created in
    code in form_load
    I am having trouble with the update of data as no rows are affected.
    I think that the problem is that my sqldatasources update command
    parameters are not being updated with the newvalues from the gridview.

    Do I have to do this manually or should it wire itself up?

    My application allows a user to select from a list of tables on
    different databases/servers and then maintain the data within it.

    (I did have this all working using a custom update command that was
    built and fired in the grdview's updating event - set e.cancel before
    exiting the event. But I wanted to do this all the '.Net' way rather
    than hard-code everything.)
    OceanTragic, Nov 14, 2006
    #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. Will
    Replies:
    0
    Views:
    771
  2. Luqman
    Replies:
    5
    Views:
    1,421
    luqman
    Nov 22, 2007
  3. PeterKellner
    Replies:
    1
    Views:
    194
    mou piya
    Jun 2, 2006
  4. Vaughn Haybittle
    Replies:
    0
    Views:
    893
    Vaughn Haybittle
    Apr 2, 2007
  5. ES
    Replies:
    0
    Views:
    928
Loading...

Share This Page