private void frmBook_Load(object sender, EventArgs e) { Sach_BUS sachBUS = new Sach_BUS(); dtgBook.AutoGenerateColumns = false; dtgBook.DataSource = sachBUS.LayDanhSachSach(); }
private void frmBorrow_Return_Load(object sender, EventArgs e) { dtgBorrow_Return.AutoGenerateColumns = false; dtgBorrow_Return.DataSource = ctms_BUS.LayCTMuonSach(); DataGridViewComboBoxColumn col = (DataGridViewComboBoxColumn)MaSach; col.DataSource = sach_BUS.LayDanhSachSach(); col.DisplayMember = "TenSach"; col.ValueMember = "MaSach"; txtBorrowReturn_ReturnID.Text = trasach_BUS.PhatSinhMaTraSach(); }