private void frmSach_Load(object sender, EventArgs e) { BUS_GiangHang bus_GH = new BUS_GiangHang(); cboGH.DataSource = bus_GH.getGH(); cboGH.ValueMember = "MaGH"; cboGH.DisplayMember = "TenGH"; dgvSach.DataSource = bus_sach.getSach(); }
private void frmNhanVien_Load(object sender, EventArgs e) { BUS_GiangHang bus_GH = new BUS_GiangHang(); dgvNhanVien.DataSource = bus_NhanVien.GetData(); DataTable dt = bus_GH.getGH(); cboMaGH.DataSource = dt; cboMaGH.ValueMember = "MaGH"; cboMaGH.DisplayMember = "TenGH"; }
private void frmGiangHang_Load(object sender, EventArgs e) { dgvGiangHang.DataSource = bus_GH.getGH(); }