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
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.