Exemple #1
0
 //Sản phẩm
 private void LoadSanPham()
 {
     _sanPhamDT                          = _ctrlSanPham.GetData();
     dgView.DataSource                   = _sanPhamDT;
     dgView.Columns["id"].Visible        = false;
     _idSanPham                          = Convert.ToInt32(dgView.Rows[0].Cells[0].Value.ToString());
     dgView.Columns["MoTa"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
 }
Exemple #2
0
 public void UpdateViewSanPham()
 {
     dgView.DataSource = _ctrlSanPham.GetData();
 }
Exemple #3
0
 ///
 ///
 /// SANPHAM
 ///
 private void LoadSanPham()
 {
     _sanPhamDT = _ctrlSanPham.GetData();
     dgViewSanPham.DataSource = _sanPhamDT;
     _idSanPham = Convert.ToInt32(dgViewSanPham.Rows[0].Cells[0].Value.ToString());
 }