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(); }
public void SetDataGridview() { DataGridViewRow dbTempt = dataGridView1.CurrentRow; dgvcbcSach.DataSource = bus_Sach.getSach(); dgvcbcSach.DisplayMember = "TenSach"; dgvcbcSach.ValueMember = "MaSach"; }