Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Add hyperlink to ListView subitem

Posted on 2007-11-29
2
3,235 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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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