?
Solved

Add hyperlink to ListView subitem

Posted on 2007-11-29
2
Medium Priority
?
3,300 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
[X]
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
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

764 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