Hello,

I have been having a heck of a time using a Listbox with a BindingList object as the datasource. I have finally managed to get the ListBox to update when changes are made to existing items in the BindingList object. When removing items from the list I had to use .RemoveAt rather than .Remove. Now, the last thing I need to do is have the list update when a new item is added. No matter what I try, the listbox will not update.

The initial loading of the listbox works fine.

Removing the datasource and it back does not seem to work.


Has anyone managed to to this?

Thanks,

Tim

Update: The ListBox was updating. I was forgetting to update the value of the ListBox.DisplayMember.

Tim

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.