EditItem Template

Discussion in 'ASP .Net' started by =?Utf-8?B?SmltIEhlYXZleQ==?=, Feb 18, 2005.

  1. I want to populated the list items which will appear in a dropdown list when
    the user click on a row in my datagrid. I used the DataBinding Event and
    populate the drop down and set the index to the appropriate value within that
    drop down. Now when the user presses the"Update" button when editing a row,
    by the time it gets to the Update event the Selected index of my Drop Down
    has been clobbered.

    I set a switch to ensure that I would not re-execute the code to
    "re-populate" the drop down when the update event fires...but still no
    luck...the index is setting at zero. Any ideas as to what I might be ding
    wrong?
    =?Utf-8?B?SmltIEhlYXZleQ==?=, Feb 18, 2005
    #1
    1. Advertising

  2. Jim, I can't quite tell from this description, but it's likely you *do* need
    to repopulate the dropdown list--if those same items aren't there when you
    come back around you're not going to get your selected index.

    Bill

    "Jim Heavey" wrote:

    > I want to populated the list items which will appear in a dropdown list when
    > the user click on a row in my datagrid. I used the DataBinding Event and
    > populate the drop down and set the index to the appropriate value within that
    > drop down. Now when the user presses the"Update" button when editing a row,
    > by the time it gets to the Update event the Selected index of my Drop Down
    > has been clobbered.
    >
    > I set a switch to ensure that I would not re-execute the code to
    > "re-populate" the drop down when the update event fires...but still no
    > luck...the index is setting at zero. Any ideas as to what I might be ding
    > wrong?
    =?Utf-8?B?QmlsbCBCb3Jn?=, Feb 18, 2005
    #2
    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. JP.Gantlin

    Re-use the EditItem template

    JP.Gantlin, Oct 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    333
    Eliyahu Goldin
    Oct 4, 2006
  2. Dariusz Tomon

    GridView as EditItem Template

    Dariusz Tomon, Apr 4, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    447
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Apr 5, 2007
  3. Crazy Cat
    Replies:
    3
    Views:
    364
    Crazy Cat
    Oct 14, 2008
  4. Jason
    Replies:
    1
    Views:
    1,994
    Shengqing Yang [MSFT]
    Jul 12, 2010
  5. James Cooke
    Replies:
    0
    Views:
    216
    James Cooke
    Sep 11, 2008
Loading...

Share This Page