private void gridNhanVien_CellClick(object sender, DataGridViewCellEventArgs e) { try { int dong = gridNhanVien.CurrentCell.RowIndex; if (dong > -1) { if (gridNhanVien.CurrentCell.Value.ToString() == "Xem chi tiết") { string maNV = gridNhanVien.Rows[dong].Cells["MaNV"].Value.ToString(); ChiTietNV ct = new ChiTietNV(maNV); ct.Show(); //_3Layer.NhanVien nv = bizNV.BIZ_TimNhanVienTheoMa(maNV); } } } catch (Exception ex) { MessageBox.Show("Lỗi chọn danh sách"); } }
private void gridNhanVien_CellClick(object sender, DataGridViewCellEventArgs e) { try { int dong = gridNhanVien.CurrentCell.RowIndex; if(dong > -1) { if(gridNhanVien.CurrentCell.Value.ToString() == "Xem chi tiết") { string maNV = gridNhanVien.Rows[dong].Cells["MaNV"].Value.ToString(); ChiTietNV ct = new ChiTietNV(maNV); ct.Show(); //_3Layer.NhanVien nv = bizNV.BIZ_TimNhanVienTheoMa(maNV); } } } catch (Exception ex) { MessageBox.Show("Lỗi chọn danh sách"); } }