private void Form1_Load(object sender, EventArgs e) { ProductDal productDal = new ProductDal(); dgwProducts.DataSource = productDal.GetAll(); }
private void LoadProducts() { dgvProducts.DataSource = _productDal.GetAll(); }
private void ShowAllItems() { dgwProducts.DataSource = _productDal.GetAll(); }
private void ProductsLoad() { dataGridView1.DataSource = _productDal.GetAll(); }
void LoadProducts() { dgwProducts.DataSource = _productDal.GetAll();//dgwProducts'in veri kaynagi olarak productDal'daki GetAll() method'unu gosterildi. }
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. }
private void UpdateTable() { dgwProducts.DataSource = _productDal.GetAll(); }
private void Form1_Load(object sender, EventArgs e) { DatagGridView1.DataSource = _productDal.GetAll(); }