PC Review


Reply
Thread Tools Rate Thread

Moving items up and down in a sorted ListBox and keeping track ofthe items positions

 
 
Lorenz Kahl
Guest
Posts: n/a
 
      10th Sep 2004
Hi,

I have items that are stored in a database with the following
attributes: itemID, itemName, itemSortOrder

I have a ListBox that I would like to display these items in. I want the
items to be displayed in a certain order depending on the attribute
itemSortOrder. To allow the user to change the order of the existing
items I'd like to have one 'up' and one 'down' button to 'move' the
currently selected item.

Is there a simple way of this with data binding? I thought maybe it
would be possible to use the CurrencyManager.Position property...

Any suggestions or maybe some example code?

Thanks,
Lorenz
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a listbox full of database items. How do I add item "All ofthe above" COHENMARVIN@lycos.com Microsoft VB .NET 2 30th Apr 2008 11:23 PM
moving items from one listbox to another SUZYQ Microsoft Access 0 16th Feb 2006 01:58 PM
Keeping listbox items without resetting them each time =?Utf-8?B?Q2hyaXM=?= Microsoft ASP .NET 1 13th Feb 2005 10:31 PM
Moving items in ListBox =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 1 11th Aug 2004 12:29 PM
Moving items in Listbox christobal Microsoft Excel Programming 1 27th Mar 2004 08:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:12 PM.