Edit datagrid control question

Discussion in 'ASP .Net Datagrid Control' started by JimS, Jun 20, 2007.

  1. JimS

    JimS Guest

    Hello All
    I have a gridview or detailsview grid (I am trying to do the same thing in
    both) with Visual Studio 2005.
    I use a datasource to connect to the grid/details view and another
    datasource to populate a drop down list when the grid is in Edit mode. I
    would like to keep the value already in the databaserecord and not overwrite
    the record if the user doesnt make any change by using the dropdown box.

    I hope this makes sense. Here is an example:

    When I am editing the row of data and I have a current country selection of
    "United States". When I enter the edit mode, the grid text box becomes a
    dropdown box with a list of country's. If I don't manually change that drop
    down box each time back to the "United States" then the database record is
    updated with the default value (Aruba) showing in the drop down list.

    It would be even better if I could change the value in the dropdown box to
    show the current record selection when entering edit mode.

    I have a couple of different drop down boxes so I need to come up with some
    type of solution .

    How do I keep that from happening?

    Thanks
    JimS, Jun 20, 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. San Diego Guy
    Replies:
    0
    Views:
    544
    San Diego Guy
    Aug 7, 2003
  2. Schultz
    Replies:
    3
    Views:
    557
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. Andreas Klemt
    Replies:
    0
    Views:
    295
    Andreas Klemt
    Oct 8, 2003
  4. Sharon McCarty
    Replies:
    0
    Views:
    248
    Sharon McCarty
    Nov 24, 2004
  5. Frank Kurka
    Replies:
    8
    Views:
    305
Loading...

Share This Page