Exemple #1
0
 private void frmDatHang_Load(object sender, EventArgs e)
 {
     tsbtnXoa.Enabled       = false;
     dgvDanhSach.DataSource = DonDatHangBUS.DanhSachPD();
     Custom1();
     dgvDanhSach.ClearSelection();
 }
Exemple #2
0
 void LoadData()
 {
     dgvDanhSach.DataSource = DonDatHangBUS.DanhSachPD();
     Custom1();
     dgvDanhSach.ClearSelection();
     if (dgvDanhSach.Rows.Count > 0)
     {
         dgvChiTiet.DataSource = DonDatHangBUS.DanhSachCTPD(dgvDanhSach.CurrentRow.Cells[0].Value.ToString());
         Custom2();
         dgvChiTiet.ClearSelection();
     }
     else
     {
         dgvChiTiet.DataSource = null;
     }
 }