Problem with DataBinding (DataTable to ComboBox)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I have 3 Comboboxes i want to bind with 3 different DatTables. I use
this.cbxProductCategory.DataSource = myDataTable;
this.cbxProductCategory.DisplayMember = "PTCA_DESCR";
this.cbxProductCategory.ValueMember = "PTCA_CODE";
to bind the data.

Although I 'm 100% the data is inside the differnet DataTables.I don't see
the values in the comboboxes. When I only bind one DataTable to one combobox
the data is binded correctly! When I try to bind one or two DataTables to
there comboboxes no data is binded at all!

Since those 3 comboboxes are all situated in another user control no data
interference can be the cause of the problem. Someone has an idea of the
problem?

regards
Stijn
 
Stijn,

Are you attempting to bind two datatables to one combo box or two datatables
to two comboboxes? Can you provide a sample of how you have the datatables
setup and how you are binding them to the comboboxes? I would like to see if
I can help you.

Cheers
 

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

Back
Top