3
Answers

Display a drop down back to the applictaion/User.

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



Answers (3)
0
Pelumi Eluyera

Pelumi Eluyera

NA 24 5.8k 9y
Here is the Code I have tried.



//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"));
0
Abhay Shanker

Abhay Shanker

NA 10.5k 2.4m 9y
what is the error in your code...? 
0
Abhay Shanker

Abhay Shanker

NA 10.5k 2.4m 9y
what is the error in your code...?