private void Sach_Load(object sender, EventArgs e) { refreshDatagridview(); grbSach.Enabled = false; cbMaloai.DataSource = db.getData("Select * From Loaisach"); cbMaloai.DisplayMember = "Tenloai"; cbMaloai.ValueMember = "Maloai"; cbMaxb.DataSource = db.getData("Select * From Nhaxb"); cbMaxb.DisplayMember = "Tenxb"; cbMaxb.ValueMember = "Maxb"; }
private void refeshDataGridView(String sql) { dtgvDichvu.DataSource = db.getData(sql); }
public void refrehDatagridview() { dgvXuatban.DataSource = db.getData("Select * From Nhaxb"); }
private void refeshDataGridView(String sql) { dtgvThuephong.DataSource = db.getData(sql); }
private void LoadDuLieu() { dataGridViewTB.DataSource = kn.getData("select * from thietbi"); }
private void LoadDuLieuKT() { string s = "select * from KhachThue"; dataGridViewKhachThue.DataSource = kn.getData(s); }
private void LoadDuLieu() { string sql = "select * from PhongTro"; dataGridViewPhong.DataSource = kn.getData(sql); }