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
 
Back
Top