can you please help me on displaying the searched row in message box?
I've below code for searching a value in the row.
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;
}
}
}