c# - Add item to binded combobox to list -


I have a combo box which is bound to list like this

  public list & lt; Customer language & gt; Current Customer Customer List {Get (_currentCustomerLanguageList;} set {_currentCustomerLanguageList = value; BsCustomerLanguages.DataSource = Presenter.CustomerLanguageToProxy (value); cbLanguage.DataSource = bsCustomerLanguages.DataSource; cbLanguage.DisplayMember = "LanguageName"; CbLanguage.ValueMember = " ID ";}}   

I have the + - buttons on the form that allow the addition or removal of items inside the combobox.

The problem is: I do not know how the new Cambodia binding source and list to the item without full refresh Of course, when I add, the selected value must be left and no selected Valued Event should be raised.

'bsCustomerLanguages' is a binding source in that case if you set the cbLanguage.DataSource = bsCustomerLanguages ​​ and bsCustomerLanguages ​​add directly to it

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -