Strange VB.NET Winforms combobox behavior -


vb.net solution in visual studio 2012

i have combobox databindings database table. let's call manufacturer table. table has 2 values: id, name

my combobox fills correctly, displaymember set name, , valuemember set id. returns correct valuemember when selected. works expected. here's strange part... when select values in combobox, changes display values inside combobox.

example: initial values:

  • manuf a
  • manuf b
  • manuf c
  • manuf d
  • manuf e

after selecting manuf c , clicking on combobox down arrow again, combobox displays:

  • manuf c
  • manuf b
  • manuf c
  • manuf d
  • manuf e

now i'll click manuf e, , combobox displays:

  • manuf c
  • manuf b
  • manuf e
  • manuf d
  • manuf e

can tell me why it's doing , can stop rearranging , overwriting display values?

make sure datasource or bindingsource of combobox not related same source data trying save. have products bindingsource has foreign key manufacturers. data want save products->manufacturers. combo box must bind independent datasource derived manufacturers table.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -