Removing item from listitem

Results 1 to 2 of 2

Thread: Removing item from listitem

  1. #1
    Join Date
    Dec 1969

    Default Removing item from listitem

    I am not sure what I am missing but I want to remove an item then rebind the dropdownlist control. The code does not throw any errors but the dropddownlist(joblist) does not show the removed item. My code is:<BR><BR>Dim removejob As New ListItemCollection()<BR> <BR> removejob.Remove(removejob.FindbyValue(joblist.sel ectedItem.value))<BR><BR>Matt

  2. #2
    Join Date
    Dec 1969

    Default RE: Removing item from listitem

    why are you making removejob a listitemcollection?<BR><BR>couldn&#039;t you just do this:<BR><BR>joblist.items.remove( ndbyvalue(joblist.selecteditem.value)))<BR><BR>i might be a little off, i wrote that without intellisense, hehe.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts