private void dgvPN_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == dgvPN.Columns["ChiTiet"].Index && e.RowIndex >= 0) { frmChiTietPhieuNhap frmCT = new frmChiTietPhieuNhap(); frmCT.ShowDialog(); } }
private void dgvPN_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == dgvPN.Columns["ChiTiet"].Index && e.RowIndex >= 0) { phieuNhapDTO.MaPN = Convert.ToInt32(dgvPN.Rows[dgvPN.CurrentRow.Index].Cells[0].Value.ToString()); //demo frm = new demo(); //frm.MaPN = phieuNhapDTO.MaPN; //frm.Show(); frmChiTietPhieuNhap frmCT = new frmChiTietPhieuNhap(); frmCT.MaPhieuNhap = phieuNhapDTO.MaPN; frmCT.ShowDialog(); } }