removing item from dropdown list

Discussion in 'ASP .Net Building Controls' started by Paul, Apr 26, 2005.

  1. Paul

    Paul Guest

    Hi just wondering if there is a way to remove an item from a dropdown list in
    code after it has been filled with data from a dataset? Also do I need to
    know the index of the item I want to remove or is just knowing the string
    value sufficient?
    thanks.
    --
    Paul G
    Software engineer.
     
    Paul, Apr 26, 2005
    #1
    1. Advertising

  2. Paul

    Brock Allen Guest

    DropDownList.Items.Remove (or RemoveAt) is what you want

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi just wondering if there is a way to remove an item from a dropdown
    > list in
    > code after it has been filled with data from a dataset? Also do I
    > need to
    > know the index of the item I want to remove or is just knowing the
    > string
    > value sufficient?
    > thanks.
     
    Brock Allen, Apr 26, 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. rohith
    Replies:
    3
    Views:
    6,026
    rohith
    Aug 29, 2003
  2. Miguel E.

    List operation: Removing an item

    Miguel E., Apr 16, 2006, in forum: Python
    Replies:
    8
    Views:
    336
    Miguel E
    Apr 17, 2006
  3. M. Craig

    How to set background color of List item in dropdown list

    M. Craig, Nov 12, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    323
    M. Craig
    Nov 12, 2003
  4. M. Craig
    Replies:
    1
    Views:
    782
    Victor Garcia Aprea [MVP]
    Jan 9, 2004
  5. Chris
    Replies:
    7
    Views:
    114
    Gregor Kofler
    Oct 25, 2008
Loading...

Share This Page