private void dgvSearchResult_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex == 3 && e.RowIndex > -1) { ShowSearchDetailsForm form = new ShowSearchDetailsForm((dgvSearchResult[e.ColumnIndex, e.RowIndex].Value as BackGroundWorkerObject).returnedComplexCaptureMatchObject[e.RowIndex].captureEvent); //form.MdiParent = this.MdiParent; form.ShowDialog(); if (form.DialogResult == DialogResult.OK) { (dgvSearchResult[e.ColumnIndex, e.RowIndex].Value as BackGroundWorkerObject).returnedComplexCaptureMatchObject[e.RowIndex].usedReplacementEvent = form.selectedReplacementEvent; dgvSearchResult[e.ColumnIndex + 1, e.RowIndex].Value = true; } } } catch (Exception ex) { CommonUtils.ShowError(ex.Message, ex); } }