First add a link column in your datagridveiw code is
DataGridViewLinkColumn links = new DataGridViewLinkColumn();
links.HeaderText = "Hello";
links.UseColumnTextForLinkValue = true;
links.Text = "Email me";
links.ActiveLinkColor = Color.White;
links.LinkBehavior = LinkBehavior.SystemDefault;
links.LinkColor = Color.Blue;
links.TrackVisitedState = true;
links.VisitedLinkColor = Color.YellowGreen;
dataGridView1.Columns.Add(links);
then Find necessary value with this event
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString() == "Email me")
{
MessageBox.Show(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
}
else
{
MessageBox.Show("You Clicked another Cell");
}
}
may be this will help you.