Live Chat Icon For mobile
Live Chat Icon

How can I tell which column (subitem) has been clicked on in my listview

Platform: WinForms| Category: ListView

Here is a solution offered by Bharat Patel of Microsoft in the microsoft.public.dotnet.languages.csharp newgroup. The attached solution contains both C# and VB.NET projects.

The solution use Interop with the LVM_GETSUBITEMRECT window’s message to loop through each subitem’s bounds rectangle until it finds the one that contains the specified mouse click point.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.