private void resultGrid_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { DataGridViewRow row = this.resultGrid.Rows[e.RowIndex]; string src = row.Cells["sourceColumn"].Value.ToString(); string tar = row.Cells["targetColumn"].Value.ToString(); main.setTargetToGridFromFuzzyMatched(tar); } }