combobox bindings

G

Grant

Ive set my combobox properties as follows:

comboBox1.DataSource = dataset1.ScheduleType;
comboBox1.DisplayMember = "name";
comboBox1.ValueMember = "id";
comboBox1.DataBindings.Add("Selectedvalue", this.dataset1,
"Agency.ScheduleType");

I have two tables here. Combo box is selecting from table2 its value
according to what I have selected in table1. The problem is it doesnt update
the value in table1when I do a an update on my dataadapter.

Can anyone give me a link or sample code or anything that explains how to do
this simple thing. I cant find anything that works.

Thanks,
Grant
 
M

Mohamoss

hi
it should be a small part that you are missing , would you post your code
that is relevant to this
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

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.

Ask a Question

Top