Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ProductDal productDal = new ProductDal();


            dgwProducts.DataSource = productDal.GetAll();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            ProductDal productDal = new ProductDal();

            dataGridView1.DataSource = productDal.GetAll(); // DataSource diyerek bu grid formunun veri kaynağını productDal nesnesi yaptık.
        }