fixed index change on dgvPatient and dgvPhysician
This commit is contained in:
parent
4123025028
commit
50fc81c1db
@ -336,7 +336,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
DataGridViewRow row = new DataGridViewRow();
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
row = dgvPatient.SelectedRows[0];
|
row = dgvPatient.SelectedRows[0];
|
||||||
string patid = "";
|
string patid = "";
|
||||||
patid = (row.Cells[4].Value).ToString();
|
patid = (row.Cells[3].Value).ToString();
|
||||||
frmPatient PatientAdd = new frmPatient(this, false);
|
frmPatient PatientAdd = new frmPatient(this, false);
|
||||||
PatientAdd.MdiParent = MdiParent;
|
PatientAdd.MdiParent = MdiParent;
|
||||||
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
||||||
@ -397,7 +397,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
DataGridViewRow row = new DataGridViewRow();
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
row = dgvPhysician.SelectedRows[0];
|
row = dgvPhysician.SelectedRows[0];
|
||||||
string phyID = "";
|
string phyID = "";
|
||||||
phyID = (row.Cells[1].Value).ToString();
|
phyID = (row.Cells[0].Value).ToString();
|
||||||
frmPhysician PhysicianAdd = new frmPhysician(this, false);
|
frmPhysician PhysicianAdd = new frmPhysician(this, false);
|
||||||
PhysicianAdd.MdiParent = MdiParent;
|
PhysicianAdd.MdiParent = MdiParent;
|
||||||
PhysicianAdd.StartPosition = FormStartPosition.CenterScreen;
|
PhysicianAdd.StartPosition = FormStartPosition.CenterScreen;
|
||||||
|
Loading…
Reference in New Issue
Block a user