Exemplo n.º 1
0
 private void dgvPX_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dgvPX.Columns["ChiTiet"].Index && e.RowIndex >= 0)
     {
         frmChiTietPhieuXuat frmChiTiet = new frmChiTietPhieuXuat();
         frmChiTiet.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void dgvPX_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dgvPX.Columns["ChiTiet"].Index && e.RowIndex >= 0)
     {
         phieuXuatDTO.MaPX = Convert.ToInt32(dgvPX.Rows[dgvPX.CurrentRow.Index].Cells[0].Value.ToString());
         frmChiTietPhieuXuat frmChiTiet = new frmChiTietPhieuXuat();
         frmChiTiet.MaPhieuXuat = phieuXuatDTO.MaPX;
         frmChiTiet.ShowDialog();
     }
 }