I have a combobox which is filled with a drop down of different colours.
I can already save the Selected index of a combobox (Colours) to a database.
I am having troubles displaying what I have already in the Database to the User/ Application.
i cant seem to figure it out.
Any help regarding how to get the information from the saved data back to the User/ Applicaion will be appreciated.
regards
Display a drop down back to the applictaion/User.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Abhay ShankerRank #375 · 6.7K reputationPosted Mar 27, 2015, 10:15 AM EDT
Abhay ShankerRank #375 · 6.7K reputationPosted Mar 27, 2015, 10:15 AM EDT
Pelumi Eluyera24 reputationPosted Mar 27, 2015, 2:01 PM EDT
//Declare at the top
BindingSource tblSchedulerBS = new BindingSource ();
//declared in a button
tblSchedulerBS.DataSource = new datasetNumber1.TBL_Appointments [0];
cmbBackground.Databinding.Add (new Binding ("ComboBox", tblScheduleBS, "cmbBackground"));