Answer the question
In order to leave comments, you need to log in
Why does ListBox stop redrawing after changing DataSource?
There is a ListBox on the form, to which I assign DataSource and DisplayMember. When I assign for the first time, everything works well. After re-assigning another DataSource, the listBox stops redrawing and is displayed as empty.
Moreover, if you click on it with the mouse, you can see that SelectedIndexChanged is called and the objects I need are highlighted.
I use BindingList as DataSource
Answer the question
In order to leave comments, you need to log in
Are you just replacing the DataSource? don't call Bind()?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question