We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Binding Comboboxes programatically to datasources

Hi I want to programmatically bind a combobox to it’s data source. The combobox is used to access values held in a lookup table. On the form I’m using I’ve bound text boxes to the main datasource and set the comboboxe’s SelectedValue, DisplayMember, ValueMember and DataSource properties and also created a dataReleation object linking the main table with the lookup table. When the form is loaded everything is OK but when I move through the dataset using the binding context method, the values displayed in the text boxes change accordingly but the values displayed in the comboboxes don’t change. Is there anything else I should be doing?

Loader.
Live Chat Icon For mobile
Up arrow icon