What are my options for implementing a horizontal drag/drop contro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an interesting problem. I have a set of records in a data table
organized by a simple key. What I want to do is represent these records as
icons on a horizontally oriented control in asending order. Furthermore, I
want to be able to use this display to reorganize the order of the records in
the data table. i.e. If the control is displaying item1, item2, item3, I
want to be able to select item2 and drag it to the left so that the new order
in the data table is item2, item1, item3.

Also I want the control to have horizontal scrolling capability because
there will almost certainly be more than a few of these items.

I have some old code that I might be able to adapt but I'd like to see other
options. Any ideas?
 
Hi, Chernick:

Possibly you can do it using a ListView control, which gives you some icon
reordering funcionallity builted-in.

Other alternative is to implement your own container control to host all de
icons and programming drag-drop to them, but maybe the first solution fits
better to you.

Hope this to be useful to you.
 
Actually I'm hacking the ListView control right now. Unfortunately it seems
capable of only vertical scrolling (although come to think of it, that might
do.)
 
Back
Top