Entity framework ile verileri tolist ile datagridview e çekiyorum ama ben entity çatısı altında verileri aşağıdaki resime benzer şekilde nasıl çekerım ? Döngü kullanmam gerektiğini düşünüyorum ama nasıl yapabileceğimi bulamadım.

7
●67

ImageList menuImageList = new ImageList();
Graphics g = Graphics.FromHwnd(this.Handle);
// Ben verilerimi menudal.GetAll() ile gösteriyorum. Bu şekilde de hata veriyor.
menuImageList.Images.Add(menuDal.GetAll());
for (int count = 0; count < menuImageList.Images.Count; count++)
{
menuImageList.Draw(g, new Point(20, 20), count);
// Paint the form and wait to load the image
Application.DoEvents();
System.Threading.Thread.Sleep(1000);
}