CopyPastor

Detecting plagiarism made easy.

Score: 0.8234987854957581; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2025-12-27
by mostafa khosravirad

Original Post

Original - Posted on 2014-10-05
by vahid ghezelvand



            
Present in both answers; Present only in the new answer; Present only in the old answer;

``` string searchValue = Text1.Text;
int rowIndex = -1;
dataGridView2.SelectionMode = DataGridViewSelectionMode.FullRowSelect; try { foreach (DataGridViewRow row in dataGridView2.Rows) { for(int j=0;j<row.Cells.Count;j++) if (row.Cells[j].Value.ToString().Equals(searchValue)) { rowIndex = row.Index; dataGridView2.Rows[row.Index].Selected = true; return true; } } } catch (Exception exc) { MessageBox.Show(exc.Message); } return false; ```
Try this:
string searchValue = textBox3.Text; int rowIndex = -1;
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; try { foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Cells["peseneli"].Value.ToString().Equals(searchValue)) { rowIndex = row.Index; dataGridView1.CurrentCell = dataGridView1.Rows[rowIndex].Cells[0]; dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true; break; } } } catch (Exception exc) { MessageBox.Show(exc.Message); }

        
Present in both answers; Present only in the new answer; Present only in the old answer;