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;