Click here to Skip to main content
15,885,216 members
Articles / Programming Languages / C#

Handling Right-Click Events in ListView Column Headers

Rate me:
Please Sign up or sign in to vote.
4.88/5 (28 votes)
5 Feb 2008CPOL3 min read 127K   2.2K   51  
.NET WinForms doesn't provide any way to handle right-click events on column headers. This C# code shows how to determine which header was right-clicked.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Mark Lauritsen has been a software developer since 1983, starting at IBM and using a variety of languages including PL/1, Pascal, REXX, Ada, C/C++ and C#. Mark currently works at a midstream energy company developing Windows services and desktop applications in C#.

Comments and Discussions