Tearing my hair out here unfortunately.
In a nut shell I have a DataTable
containing data to be completed and then in a second DataTable
I have the results of the actions. (completed, not completed etc.)
I need to return both sets of information into DataGridView
together with essentially a LEFT OUTER JOIN
.
This is what I've got so far:
Dim Query = From t1 In MasterTbl Group Join t2 In MasterActionTbl On t1.Field(Of String)("FreshAppsID") Equals t2.Field(Of String)("FreshAppsID") Into ps = Group From p In ps.DefaultIfEmpty()
Select t1
Return Query.CopyToDataTable
It fails when I attempt to do:
Select t1, t2
I essentially wish to return all the information from t1 and t2 using a left outer join because there may not be any 'action' records in existence in t2 for all the values in t1.
I looked into DataRelation's however this doesn't allow all the data to be returned into the same DataGridView
.
TLDR
Want to select information from two datatables, join them together using a left outer join and return them as a single datatable for use in a datagridview.
Muchas