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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -