title: How to display searched rows in messagebox
body: <p>can you please help me on displaying the searched row in message box?</p>
  
  <p>I've below code for searching a value in the row.</p>
  
  <pre><code>private void button3_Click(object sender, EventArgs e)
  {
          // Code to search the  alphanumneric Part Number (in Column1 header called "Name") and highlihgt the row
  
      foreach (DataGridViewRow row in dataGridView1.Rows)
      {
          if (row.Cells["Age"].Value.ToString().Equals(textBox3.Text.StringComparison.CurrentCultureIgnoreCase))   
          {  
              dataGridView1.Rows[row.Index].Selected = true;
          }
      }
  }
  </code></pre>