473,327 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

email and hyperlinks in a datagrid

Hello:

New to the group here. I've been dabbling in C# for several months.

I have a column of contacts consisting of telephone numbers, email
addresses, and URLS. What's a good way to allow a user to double
click on a contact address and bring up an email client (address
filled in, of course) or a web page, depending on the link type?

The way I can see to do it is to apply a HitTest to the DataGrid,
check the type of link it is, and then call the appropriate
application. Is there an easier, more built-in way?

Thanks,

Ken
Nov 17 '05 #1
3 1052
Yes, you can use HitTest() to find the column clicked and based on its text,
do:

Process.Start ("mailto:<email id>?Subject=sub text");
OR
Process.Start ("<URL>");

HTH.

"Ken Loomis" <no*************@nodomain.com> wrote in message
news:36********************************@4ax.com...
Hello:

New to the group here. I've been dabbling in C# for several months.

I have a column of contacts consisting of telephone numbers, email
addresses, and URLS. What's a good way to allow a user to double
click on a contact address and bring up an email client (address
filled in, of course) or a web page, depending on the link type?

The way I can see to do it is to apply a HitTest to the DataGrid,
check the type of link it is, and then call the appropriate
application. Is there an easier, more built-in way?

Thanks,

Ken

Nov 17 '05 #2
On Wed, 20 Jul 2005 21:40:41 +0530, "Siva M"
<sh******@online.excite.com> wrote:
Yes, you can use HitTest() to find the column clicked and based on its text,
do:

Process.Start ("mailto:<email id>?Subject=sub text");
OR
Process.Start ("<URL>");

HTH.
OK. Thanks a lot for the reply.

Ken

"Ken Loomis" <no*************@nodomain.com> wrote in message
news:36********************************@4ax.com.. .
Hello:

New to the group here. I've been dabbling in C# for several months.

I have a column of contacts consisting of telephone numbers, email
addresses, and URLS. What's a good way to allow a user to double
click on a contact address and bring up an email client (address
filled in, of course) or a web page, depending on the link type?

The way I can see to do it is to apply a HitTest to the DataGrid,
check the type of link it is, and then call the appropriate
application. Is there an easier, more built-in way?

Thanks,

Ken


Nov 17 '05 #3
On Wed, 20 Jul 2005 21:40:41 +0530, "Siva M"
<sh******@online.excite.com> wrote:
Yes, you can use HitTest() to find the column clicked and based on its text,
do:

Process.Start ("mailto:<email id>?Subject=sub text");
OR
Process.Start ("<URL>");

HTH.
OK. Thanks a lot for the reply.

Ken

"Ken Loomis" <no*************@nodomain.com> wrote in message
news:36********************************@4ax.com.. .
Hello:

New to the group here. I've been dabbling in C# for several months.

I have a column of contacts consisting of telephone numbers, email
addresses, and URLS. What's a good way to allow a user to double
click on a contact address and bring up an email client (address
filled in, of course) or a web page, depending on the link type?

The way I can see to do it is to apply a HitTest to the DataGrid,
check the type of link it is, and then call the appropriate
application. Is there an easier, more built-in way?

Thanks,

Ken


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ruy Castelli | last post by:
Hello, I'm trying to get the details out of a datagrid component and it works fine when I'm accessing the first page of the datagrid, but when I try to click on the details hyperlink for an item...
1
by: John | last post by:
Hi all, My app contains a datagrid with hyperlinks inside and these hyperlinks all point back to the same page. The problem is that I have a 'search' user control and the viewstate changes once...
6
by: Trint Smith | last post by:
Can a datagrid have thumbnails and hyperlinks? Does anyone have a good sample of that? And is a datagrid better than results pages on searches of a sql server database? Thanks, Trint .Net...
1
by: Jason L James | last post by:
Hi all, I have datagrid with a column that is to contain hyperlinks to other documents. The is in the columns from a bound data source but I would like to format them as hyperlinks so that I...
2
by: Bishoy George | last post by:
I have a database table with many columns: ItemID , ItemName , ItemLink , ItemSize I want to display items through a datagrid or whatever in the way that the ItemName is written and has the...
1
by: rcoco | last post by:
Hi all, I have two datagrid, one has a list of allowed user of the second datagrid. The second datagrid is an inserting datagrid and it Function properly. Now where my problem is I need to be able...
1
by: rcoco | last post by:
Hi all, I have this big problem with hyperlinks I would appriciate any help please. My web site has two datagrids on the same page. And one has a list of names of the users which are in form of...
2
by: =?Utf-8?B?S3VtYXIuQS5QLlA=?= | last post by:
HI I want to disable the underline of a hyperlink text in a hyperlink column of datagrid/gridview in the content page. If I am writing a css class to disable it in the master page then its...
2
by: Jonathan | last post by:
In the sample code below, how do I make the various text items in a datagrid column have a clickable hyperlinks? e.g. Ford Mustang should be a link to www.mysite.com/mustang.htm </head>
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.