Link to home
Start Free TrialLog in
Avatar of eNarc
eNarcFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Drag Up or Down Position of a Listview Entry

Hi I'd like to be able to move a listview item up and down the listview. is there anyway of doing this with a mouse or button?

for example, to rearrange the items in an order of choice.
ASKER CERTIFIED SOLUTION
Avatar of Hypo
Hypo
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eNarc

ASKER

wow not only does your code drag it also able to drag it into another listview :D thankyou thankyou thankyou :D

I searched "ListViewDragDrop" on google and found this

http://delphi.about.com/od/vclusing/a/arrangelistview.htm 

and I thought it would be relevant to add this for future :D
Avatar of eNarc

ASKER

oh no, I need an admin to fix this I made a mistake when finalizing.
Avatar of eNarc

ASKER

how does one use that code KillerCode? were do I put it?
u can add it to 2 Buttons next to the listview, or in a PopUpMenu, ill see what i can do with ur other topic now
or thats another thing??
if i didnt get what u mean explain me more plz
Ohh, ok... but you got it to work at least?
/Hypo
Avatar of eNarc

ASKER

thanks coolleomod :D


Hypo: hell yea it works :D it was awesome your code its does exactly what I ask :D being able to move the items from 1 listview to the other is wow! I totally can use that in other apps too :D thankyou thankyou thankyou

KillerCode: your code works too, and is great, I love functions they do make everything easier, almost everything I've coded has a function makes everything a complete package :D