Dropdown list

Discussion in 'ASP .Net' started by bbawa1@yahoo.com, May 17, 2007.

  1. Guest

    I have a dropdown list and I am pulling the data from database and
    then binding it with dropdown list e.g ddlApplication.DataBind();

    Now when I click any item it sends that item in the gridview but what
    I want that whichever item sends to gridview it should now disappar in
    the dropdownlist

    How can I do that.
    , May 17, 2007
    #1
    1. Advertising

  2. <> wrote in message
    news:...
    >I have a dropdown list and I am pulling the data from database and
    > then binding it with dropdown list e.g ddlApplication.DataBind();
    >
    > Now when I click any item it sends that item in the gridview but what
    > I want that whichever item sends to gridview it should now disappar in
    > the dropdownlist


    For removing the items, the Remove() function can be used.

    DropDownList1.Items.Remove(DropDownList1.SelectedItem)
    Alexey Smirnov, May 17, 2007
    #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. vishnu
    Replies:
    1
    Views:
    1,203
    Patrick.O.Ige
    Mar 25, 2006
  2. Mike
    Replies:
    1
    Views:
    803
  3. acadam
    Replies:
    0
    Views:
    755
    acadam
    Dec 27, 2006
  4. Replies:
    2
    Views:
    432
  5. Steve Myers
    Replies:
    2
    Views:
    272
    Steve Myers
    Nov 20, 2003
Loading...

Share This Page