如何将行从datagridview
转移到另一个datagridview
?
我正在使用实体框架。
以下是我的尝试:
dataGridView1.DataSource = (from movie in movieEntities.Movie.ToList()
join inventory in movieEntities.MovieInventory.ToList()
on movie.MovieID equals inventory.MovieID
join genre in movieEntities.Genre.ToList()
on movie.GenreID equals genre.GenreID
select new
{
ID = movie.MovieID,
Title = movie.MovieName,
Quantity = inventory.TotalQuantity,
Price = movie.Price,
}).ToList();