private void frmSanPham_Load(object sender, EventArgs e) { GridSP.DataSource = sanphamBUS.GetSanPham(); cboMaLSP.DataSource = loaisanphamBUS.GetLoaiSP(); cboMaLSP.DisplayMember = "TenLoaiSanPham"; cboMaLSP.ValueMember = "MaLoaiSanPham"; }
private void frmLoaiSanPham_Load(object sender, EventArgs e) { GridLoaiSP.DataSource = loaisanphamBUS.GetLoaiSP(); }