private void EditSanPham_GUI_Load(object sender, EventArgs e) { cbNCC.DataSource = ncc.loadNCC(); cbNCC.DisplayMember = "TenNCC"; cbNCC.ValueMember = "MaNCC"; cbLoai.DataSource = lsp.loadLoaiSP(); cbLoai.DisplayMember = "TenLoaiSanPham"; cbLoai.ValueMember = "MaLoaiSanPham"; txtMaSP.Text = maSP; }
public void loaddgv() { dgvNCC.DataSource = ncc.loadNCC(); }