- Set the combo box's DataSource to the DataTable in the DataSet.
- Set the combo box's DisplayMember property to the appropriate column name
in the DataTable.
- Add a DataView to the form, and set its Table property to the same
DataTable as the combo box's DataSource.
- Bind all controls (except for the combo box) to the DataView.
- In the SelectedIndexChanged event handler for the combo box, change the
DataView's RowFilter property, so that the combo box's DisplayMember is set
to the selected value. For example:
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.