Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15430

Join two datatables

$
0
0
Hi everyone, i'm trying to join two datatables, everything i can find online suggests using LINQ, which is fine but i find it's confusing to understand what it is that the examples are actually doing.

I have one datatable that contains "Inventory" and is named as such, and another datatable that has "CountVarience" named the same as well.

Both datatables have a column with "product code", i need to add the "product descriptions" column from the "Inventory" table to the "CountVarience" table where the product codes are the same. The end result can be an entirely new datatable that i will then bind to a datagridview.

I do need to add more columns then just this one, but i figured if i could just get the one working i should be able to repeat it for all the other columns i need to join in the tables.

Any guidance on how to achieve this correctly would be great :)

Viewing all articles
Browse latest Browse all 15430

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>