private void btnOpenMgr_Click(object sender, EventArgs e) { int index = dgvAdvisors.CurrentCell.RowIndex; Guid advisorId = new Guid(dgvAdvisors.Rows[index].Cells[0].Value.ToString()); frmAdvisor _frmAdvisor = new frmAdvisor(frmMain_Parent, advisorId, advisorForm_FormClosed); }
private void dgvAdvisors_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int index = dgvAdvisors.CurrentCell.RowIndex; Guid advisorId = new Guid(dgvAdvisors.Rows[index].Cells[0].Value.ToString()); frmAdvisor _frmAdvisor = new frmAdvisor(frmMain_Parent, advisorId, advisorForm_FormClosed); }