コード例 #1
0
        private void dgvPN_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == dgvPN.Columns["ChiTiet"].Index && e.RowIndex >= 0)
            {
                frmChiTietPhieuNhap frmCT = new frmChiTietPhieuNhap();

                frmCT.ShowDialog();
            }
        }
コード例 #2
0
        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();
            }
        }