View Single Post
  #4 (permalink)  
Old July 10th, 2003, 03:28 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, sorry. I misunderstood your question and mixed up the DataList with a DropDown control.

In that case, I don't really know the answer to your question.

You may want to loop through the Items collection, setting each Item's Visible property to False, or you may try to Dispose() an Item, although I am not sure that would work.

In what scenario do you need this? Isn't it easier to rebind your list to the original datasource where you have removed the item??

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.