Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Setting SelectedValue of ComboBox with Binding Source

$
0
0

I have a form with several fields using a binding source to a dataset.  One of my controls is a ComboBox that gets populated with values from a database and a default value is selected.  When I call the AddNew on the binding source, the binding source is setting the selectedvalue of the combobox to "".  I cannot figure out where or when to set the selected value on the combobox without the binding source stepping over it by setting the selectedvalue to "".  If you know the secret to setting a selectedvalue of a bound combobox after the AddNew is called I would appreciate your help.

Thank you,


Smeese


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>