Setting datasource of combobox changes the visual text field

  • Thread starter Thread starter progressdll
  • Start date Start date
P

progressdll

I fill an arraylist from a function
ArrayList ar=Kleur.FindAll(Artikel.Nummer);

And set the data source
comboBoxExKleuren.DataSource=ar;

But this combobox changes the visual text field to the first field in
the array

Any solution to stop this?
 
I fill an arraylist from a function
ArrayList ar=Kleur.FindAll(Artikel.Nummer);

And set the data source
comboBoxExKleuren.DataSource=ar;

But this combobox changes the visual text field to the first field in
the array

Any solution to stop this?

Do you need to override 'ToString()' in your class to point to whatever
you want the ComboBox to display?
 

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

Back
Top