private void dgvAdvisors_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dgvAdvisors.CurrentRow.Index; advisorId = new Guid(dgvAdvisors.Rows[index].Cells[0].Value.ToString()); Presentation.Forms.frmAdvisor advisorForm = new Presentation.Forms.frmAdvisor(frmMain_Parent, advisorId); }
private void btnOpenAdv_Click(object sender, EventArgs e) { int index = dgvAdvisors.CurrentRow.Index; advisorId = new Guid(dgvAdvisors.Rows[index].Cells[0].Value.ToString()); Presentation.Forms.frmAdvisor advisorForm = new Presentation.Forms.frmAdvisor(frmMain_Parent, advisorId); }