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 / August 2006

Tip: Looking for answers? Try searching our database.

ListView Custom Sorting and repositioning later

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe - 09 Aug 2006 17:36 GMT
I have a ListView with a custom ListViewItemSorter assigned. After I add all
the items I assign the sorter and everything is sorted fine. This works the
way I want.

Now I want the user to be able to move items within the ListView but they're
always resorted. If I try and set ListView.ListViewItemSorter = null then
the items are no longer sorted in the original order.

Any ideas how to work around this?

-Joe
Joe - 09 Aug 2006 18:36 GMT
Here's what I did - I set the ListViewItemSorter before adding the items and
I set it to null in the Click event of one of the buttons that moves the
items.

>I have a ListView with a custom ListViewItemSorter assigned. After I add
>all the items I assign the sorter and everything is sorted fine. This works
[quoted text clipped - 7 lines]
>
> -Joe

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.