<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>.Net Thoughts and Ideas - WinForms</title>
    <link>http://xealcom.co.uk/</link>
    <description>Place to share and reflect ...</description>
    <language>en-us</language>
    <copyright>Alex B. Clarke</copyright>
    <lastBuildDate>Wed, 03 Sep 2008 19:23:40 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>alexclarke@xealcom.net</managingEditor>
    <webMaster>alexclarke@xealcom.net</webMaster>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=ea53a3bf-69be-4efa-8048-2a9c14793b35</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,ea53a3bf-69be-4efa-8048-2a9c14793b35.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,ea53a3bf-69be-4efa-8048-2a9c14793b35.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=ea53a3bf-69be-4efa-8048-2a9c14793b35</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
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 <a href="http://support.microsoft.com/kb/822483" target="_blank">"The
ListView control does not support drag-and-drop functionality for items at run time"</a> that
I used as a starting point.
</p>
        <p>
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".
</p>
        <p>
Tomorrow, I shall try to find a good solution for this problem.
</p>
        <p>
It's all done now and in production ;) When my current contract ends I will have more
time to describe the solution.
</p>
      </body>
      <title>ListView Drag And Drop</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,ea53a3bf-69be-4efa-8048-2a9c14793b35.aspx</guid>
      <link>http://xealcom.co.uk/2008/09/03/ListViewDragAndDrop.aspx</link>
      <pubDate>Wed, 03 Sep 2008 19:23:40 GMT</pubDate>
      <description>&lt;p&gt;
Today I've been working on implementing &amp;quot;drag-and-drop&amp;quot; functionality between
two ListView controls. There is a good sample on Microsoft Help and Support web site &lt;a href="http://support.microsoft.com/kb/822483" target="_blank"&gt;&amp;quot;The
ListView control does not support drag-and-drop functionality for items at run time&amp;quot;&lt;/a&gt; that
I used as a starting point.
&lt;/p&gt;
&lt;p&gt;
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 &amp;quot;source&amp;quot;
ListView, however, the DragDrop event handler of the &amp;quot;destination&amp;quot;&amp;#160;
ListViewControl does not contain any reference to the &amp;quot;source&amp;quot;.
&lt;/p&gt;
&lt;p&gt;
Tomorrow, I shall try to find a good solution for this problem.
&lt;/p&gt;
&lt;p&gt;
It's all done now and in production ;) When my current contract ends I will have more
time to describe the solution.
&lt;/p&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,ea53a3bf-69be-4efa-8048-2a9c14793b35.aspx</comments>
      <category>WinForms</category>
    </item>
  </channel>
</rss>