I will have 2 populated data tables:
dtMyTable1
dtMyOtherTable
Here is the interface of the method that I would like to see a working example of:
Public Sub(byval Dt1 as datatable, byval Dt2 as datatable, byref DtInBoth as datatable, byRef DtOnlyInFirst as DataTable)
(I know, this is probably really simple to accomplish, but I am new to .NET...)
Definition of the fields being passed in:
Dt1 --> First data table to compare
Dt2 --> Second data table to compare
DtInBoth --> Return datatable that contains only the rows found in both datatables
DtOnlyInFirst --> Return datatable that contains the records that were only found in the first datatable
I would prefer an example in VB.NET, but will accept C# as well.
Start Free Trial