From 50fc81c1db9a7d7679cb1467518aacb1f737fbad Mon Sep 17 00:00:00 2001 From: caschick221 Date: Mon, 19 Feb 2024 13:30:33 -0500 Subject: [PATCH] fixed index change on dgvPatient and dgvPhysician --- Louis'-Pharmacy_CNSA212-FP/frmInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs index 34360ce..f4ae666 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs @@ -336,7 +336,7 @@ namespace Louis__Pharmacy_CNSA212_FP DataGridViewRow row = new DataGridViewRow(); row = dgvPatient.SelectedRows[0]; string patid = ""; - patid = (row.Cells[4].Value).ToString(); + patid = (row.Cells[3].Value).ToString(); frmPatient PatientAdd = new frmPatient(this, false); PatientAdd.MdiParent = MdiParent; PatientAdd.StartPosition = FormStartPosition.CenterScreen; @@ -397,7 +397,7 @@ namespace Louis__Pharmacy_CNSA212_FP DataGridViewRow row = new DataGridViewRow(); row = dgvPhysician.SelectedRows[0]; string phyID = ""; - phyID = (row.Cells[1].Value).ToString(); + phyID = (row.Cells[0].Value).ToString(); frmPhysician PhysicianAdd = new frmPhysician(this, false); PhysicianAdd.MdiParent = MdiParent; PhysicianAdd.StartPosition = FormStartPosition.CenterScreen;