I used a join for a simple database in LinqToSQL and want to show the result in a DataGridView. When I use the code below, it shows the types of the columns, not columns or values. How should I use it to show all columns correctly?
public void RefreshDGV()
{
dataGridView1.DataSource = SQLHelper.otdc.StandartProds
.Join(SQLHelper.otdc.Orders, a1 => a1.OrderID, a2 => a2.OrderID, (a3, a4) => new { a3, a4 })
.Join(SQLHelper.otdc.Colors, b1 => b1.a3.ColorID, b2 => b2.ColorID, (b3, b4) => new { b3, b4 })
.Select(x => x);
}
The result image: