Binding Combobox with 2 tables

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hello,

I have en connection string which use 2 tables...

I have a combobox which :
- Display a value from TABLE1
- the value from TABLE2

But it doesn't run :-((

I would like that the combobox display a value from TABLE1 and return a
value from TABLE2...

How to do ?

It's run with 1 table, but on 2 tables, there is an error with child...

Thanks
 
Hi,

You have to bind it to a datatable which has the data from both
tables in. You would have to use a sql statement with a inner join in it to
get data from 2 tables.

Ken
 
Back
Top