var query = from n in c.course
join a in c.sc on n.courseID equals a.courseID
select new {courseid=n.courseID };
dataGridView1.DataSource = q;
datasourse綁定的是linq 對兩個表聯合查詢的結果,在datagridview上啟用編輯,但是沒有用,該怎麼辦
還是用DataTable吧。https://q.cnblogs.com/q/51920/