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?
 
Back
Top