How to clear a bound combo box

G

Guest

Hi,
I have a combo box that is bound to an ArrayList. While the application is
running this ArrayList gets loaded with new values each time discarting the
old ones.

I have done the following:

ArrayList.Clear();
LoadArrayList();
comboBox.DataSource = ArrayList;
comboBox.Refresh();

While in runtime when I run this code for the second time, the combo box
does not display the second set of values.
Can someone help?
Thank you,
E.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top