I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will accept all items that are allowed, and reject those that are not. Insights appreciated.
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Recommended Answers
Jump to PostPerhaps you could manipulate the Tag property of the ListViewItem. Don't no if this will work, never tried it myself, but if I would, I would try this as my first option.
Jump to PostIs it not possible in, the drag/drop events, to check if some flag is set in the Tag object and act accordingly?
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Ketsuekiame
860
Master Poster
Featured Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.