Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Putting rules around listview drag and drop

Status
Not open for further replies.

jadams0173

Technical User
Feb 18, 2005
1,210
Using Vb 2005.

I have a listview that I allow the user to drag and drop items up and down the list. I need to put some rules around how far certain items can be dragged up or down the listivew based on a column in the listview items that it is being dragged over.

An example would be something like if a job (listview item) was released then
1. another job that is scheduled could not be put in front of it.
2. the released job could not be moved once it was started. (i would know this by a column in the listview).

I'm not really sure whether to try to implement such rules when the user drops the item or as the item is being dragged up or down the listview.

Any input is welcome.
 
Is there a way to know what items you are dragging over in the same listview? If you grabbed the last item in a listview could you check each of the other listview items you were dragging over?

I'm still having a hard time working through this one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top