diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs index 0225889..77f39bd 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.cs @@ -328,7 +328,7 @@ namespace Louis__Pharmacy_CNSA212_FP PatientAdd.Show(); PatientAdd.Focus(); Console.WriteLine( dgvPatient.SelectedRows.Count); - DataGridViewRow row = dgvPatient.SelectedRows[1]; + DataGridViewRow row = dgvPatient.SelectedRows[0]; PatientAdd.FillPatient(row.Cells[0].Value.ToString().Trim()); } }