I'm joining two tables and I need to return flat collection of joined records. Here is initial code:
var v = (from t1 in Table1
join t2 in Table2 on t1.Col1 equals t2.Col1
select new {
t1,
t2
}).ToList();
The result is a collection of 2 DataRow
elements per row and is not flat.
I want to efficiently flatten this so I could use it as DataSource
for DataGridView
. I can't list out each property of each element.