Click here to Skip to main content
15,916,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I open an utlook from datagrid view by clicking in particular Email column in c#
Posted

1 solution

You need to render the column as a hyperlink. One technique is to concatenate the hyperlink HTML in a SQL query (where the data is coming from a database). You don't say where your data is coming from, so I'll give an SQL example.

SELECT '<a href="mailto:' + [Email] + '">' + [Email] + '</a>'
FROM MyTable
In this example "[Email]" would be the name of the field containing the email address.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900