private void ContactDataGrid_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 2) // Assuming it's the first column
{
Process.Start("mailto:" +
ContactDataGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
}
}
This is my code to add an email hyperlink to my datagridview. The email is taken from a textbox. I would like to do the same where I would enter a contact into a textbox and can then click this hyperlink to open up Microsoft Teams along with the contact.
Is this possible?