How to populate a combobox from a DataBase
Demonstrates how to populate a ComboBox from a DataBase. The ComboBox has DataSource as table 'Customer' of DataBase that contains 'CustomerID' 'ContactName' and other columns. 'CustomerID' property is set such ValueMember and 'ContactName' property is set such DisplayMember for the ComboBox. If you will change selected item of the ComboBox you will see to change Text of 'Selected value' and 'Selected Name' TextBoxes.
|