Solved

Add hyperlink to ListView subitem

Posted on 2007-11-29
2
3,222 Views
Last Modified: 2013-11-07
Using a ListView control to display data.  I want to make one of the columns (i.e. subitems) a hyperlink to a URL.  A number of posts I've read discuss using the SelectedIndexChanged event to start a process based on which row was clicked.  However, I only want the hyperlink to fire if a specific subitem/cell is clicked, not anywhere on the item.  Would also be nice if the mouse cursor changed when mouse over that sepcific subitem/cell too.

Using VB.NET 2005 compiling for .NET 2.0.
0
Comment
Question by:sj_hicks
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20379193
you can use the HitTest method inside the SelectedIndexChanged event:
http://msdn2.microsoft.com/en-us/library/w8ssfa8a.aspx

this will tell you which sub item has been clicked.
0
 
LVL 7

Author Closing Comment

by:sj_hicks
ID: 31623401
Sweet, thanks Jaime.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Set value of dynamically created checkboxlist 2 34
SQL Help 27 45
Switching Visual Studio 2015 to normal debug display 3 27
Help with preventing downloading a zip file 10 37
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question