Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Add a small icon to column to signal a sort on this column in list

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 28 Sep 2004 14:49 GMT
Hello everybody!

I have a sortable listview control (ie, can click on any column and sort
asc/dec) however I would like to include a small icon, a 'triangle' or
'arrow' indicating that column the sort is on. This is common behaviour
almost everywhere, including the windows explorer.

I have searched everywhere and found little help... does anyone know how to
do this? or if it is possible at all?

Thanks a million!
Greg
Claes Bergefall - 29 Sep 2004 08:02 GMT
Add your images to an imagelist and then use
HDM_SETIMAGELIST to assign it to the
header. Use LVM_GETHEADER to
get a handle to the header

Once you have the imagelist in place use
HDM_SETITEM to specify which image to
show (once again, use LVM_GETHEADER
to get a handle to the header).

Note that if you set any of the imagelists (small or large)
for the listview it will forward those to the header, so
you'll have to reapply your own imagelist to the header
in that case.

   /claes

> Hello everybody!
>
[quoted text clipped - 8 lines]
> Thanks a million!
> Greg

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.