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 / September 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
B. Chernick - 27 Sep 2007 14:05 GMT
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?
Juanma Mtnez - 27 Sep 2007 14:21 GMT
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.

> 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
[quoted text clipped - 9 lines]
> I have some old code that I might be able to adapt but I'd like to see other
> options.  Any ideas?
B. Chernick - 27 Sep 2007 14:47 GMT
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.)

> Hi, Chernick:
>
[quoted text clipped - 20 lines]
> > I have some old code that I might be able to adapt but I'd like to see other
> > options.  Any ideas?
Robbe Morris - [MVP] C# - 27 Sep 2007 14:37 GMT
Most datagrid controls make this functionality easy to implement.

Signature

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


>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
[quoted text clipped - 14 lines]
> other
> options.  Any ideas?

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.