Alex B. Clarke

Hi, I am a software developer specialising in Microsoft .Net technologies. This site is used to interact with, and contribute to development community.

Send mail to the author(s)  Contact me
Feed your aggregator (RSS 2.0)  Syndicate
On this page....
Categories
Archives
Blogroll
Blog Stats
Total Posts: 43
This Year: 5
This Month: 0
This Week: 0
Comments: 33
Misc
Theme by Alex B. Clarke.

Copyright © 2010 Alex B. Clarke. All rights reserved.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

# Wednesday, September 03, 2008

Today I've been working on implementing "drag-and-drop" functionality between two ListView controls. There is a good sample on Microsoft Help and Support web site "The ListView control does not support drag-and-drop functionality for items at run time" that I used as a starting point.

I have a basic model working just fine except for one thing. When ListViewItems are to be moved (rather than copied), they should be removed from the "source" ListView, however, the DragDrop event handler of the "destination"  ListViewControl does not contain any reference to the "source".

Tomorrow, I shall try to find a good solution for this problem.

It's all done now and in production ;) When my current contract ends I will have more time to describe the solution.

Filed under: WinForms  | Published by: Alex B. Clarke  | Comments [0]