Results 1 to 2 of 2

Thread: Items not refresh in ListBox

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Items not refresh in ListBox

    Hi all,

    I have binded a listbox with an ArrayList by setting the DataSource, DisplayMember and ValueMember properties. Listbox is working fine, but when new items are added or removed in the listbox, I recall the function which bind listbox with ArrayList but the changings are not reflected in the listbox until I close the form and reload it.

    Any ideas ??

    Thanks

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: Items not refresh in ListBox

    How are you adding the new Item? Are you adding them directly to the ListBox?You should add new new Item to your ArrayList and then re-bind the Listbox with the newly modified ArrayList.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

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



Click Here to Expand Forum to Full Width