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.
Unfortunately, activation email could not send to your email. Please try again.

Binding Comboboxes programatically to datasources

Thread ID:




20246 Oct 13,2004 03:50 AM Windows Forms 0
Tags: FAQ
Asked On October 13, 2004 03:50 AM

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?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.