-
Mar 13th, 2012, 11:34 AM
#1
Thread Starter
Member
Listbox drag/drop databind issue
Hello.
I have a listbox on a win form that is databound to a datatable.
I add rows to the datatable on the click of a button and this updates the listview.
My issue is that i want to be able to drag the order of the items in the listbox.
I can get it working with static (prepopulated) data, but as soon as i connect the datatable then it refuses to re-order.
Whats my best way of doing this?
Should I un-bind the datatable, re-order the list and then update the datatable (how would i do this?) ?
or should i try to update the datatable as I'm performing the re-order?
Please help. I've not been able to find a solution and I'm tearing out what little hair I have.
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|