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?

RE: What are my options for implementing a horizontal drag/drop contro by JuanmaMtnez

JuanmaMtnez
Thu Sep 27 06:21:03 PDT 2007

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.

"B. Chernick" wrote:

> 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?

Re: What are my options for implementing a horizontal drag/drop contro by Robbe

Robbe
Thu Sep 27 06:37:39 PDT 2007

Most datagrid controls make this functionality easy to implement.

--
Robbe Morris [Microsoft MVP - Visual C#]
.NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorials/aspnet/270e9432-d236-47e7-b1af-5cd3abe27a75/net-propertygrid-control.aspx




"B. Chernick" <BChernick@discussions.microsoft.com> wrote in message
news:6A6709FC-559A-4480-B673-B763E6ECF62F@microsoft.com...
>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?


RE: What are my options for implementing a horizontal drag/drop co by BChernick

BChernick
Thu Sep 27 06:47:03 PDT 2007

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.)

"Juanma Mtnez" wrote:

> 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.
>
> "B. Chernick" wrote:
>
> > 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?