removing item in dropdownlist

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I find tons of info on adding, but what about removing an item dynamically?

I'm cycling through the list and removing users that have special rights.
I've tried things like:

ddcontactnames.Items.Remove(userdata("CONTACT_ID"))

but how do I pick the value on the item and remove it?

thanx.
 
Hi Chris,
You can remove using this :

ddl.Items.Remove(ddl.Items.FindByValue("2"));

P.S : If this post helped you, please click 'Yes' on top to close the
thread. Thanks
HTHs...
R. Thomas
 
thanx!

R. Thomas said:
Hi Chris,
You can remove using this :

ddl.Items.Remove(ddl.Items.FindByValue("2"));

P.S : If this post helped you, please click 'Yes' on top to close the
thread. Thanks
HTHs...
R. Thomas
 
Back
Top