<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Drag &amp; drop between 2 treeviews</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Drag &amp; drop between 2 treeviews]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:46:06 +0000</pubDate>
  <lastBuildDate>Wed, 28 Oct 2009 06:14:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15483</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Drag &amp; drop between 2 treeviews : I need help for the drag &amp;amp;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15483&amp;PID=54280&amp;title=drag-drop-between-2-treeviews#54280</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4998">iamgtd</a><br /><strong>Subject:</strong> 15483<br /><strong>Posted:</strong> 28 October 2009 at 6:14am<br /><br />I need help for the drag &amp; drop operation between two CodeJock treeviews. <DIV>&nbsp;</DIV><DIV>In the OLEDragDrop-event&nbsp; the target treeview receives something. But I'm not able to convert this to&nbsp;a TreeViewNode. Please see the code. Is it necessary to do something in the OLEDragOver-Event? A sample would be great.</DIV><DIV>&nbsp;</DIV><DIV><FONT size=1>private void SourceTreeView_OLEStartDrag(object sender, AxXtremeSuiteControls._DTreeViewEvents_OLEStartDragEvent e)<BR>{<BR>&nbsp;&nbsp;&nbsp; e.allowedEffects = 1; // Copy<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; // ------------------------------------------------------------------------------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; // Is it necessary to use the SetData-method?<BR>&nbsp;&nbsp;&nbsp; // ------------------------------------------------------------------------------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; //XtremeSuiteControls.TreeViewNode node = SourceTreeView1.SelectedItem;<BR>&nbsp;&nbsp;&nbsp; //e.data.Clear();<BR>&nbsp;&nbsp;&nbsp; //e.data.SetData(node,<FONT color=#ff0000>???Format???</FONT>);<BR>}</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>private void TargetTreeView_OLEDragDrop(object sender, AxXtremeSuiteControls._DTreeViewEvents_OLEDragDropEvent e)<BR>{<BR>&nbsp;&nbsp;&nbsp; XtremeSuiteControls.TreeViewNode newnode = (XtremeSuiteControls.TreeViewNode)e.data;<BR>&nbsp;&nbsp;&nbsp; // ------------------------------------------------------------------------------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; // newnode is always null</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; // type of e.data is <FONT color=#0000ff>XtremeSuiteControls.DataObject {System.__ComObject}</FONT> and the value is <FONT color=#0000ff>{System.__ComObject}</FONT>.&nbsp;</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; // How can&nbsp;I convert this to a TreeViewNode?</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; // What's to do with the e.effect-value? This value is alwasy 7.<BR>&nbsp;&nbsp;&nbsp; // ------------------------------------------------------------------------------------------------------------------------------------------<BR>}<BR></DIV></FONT>]]>
   </description>
   <pubDate>Wed, 28 Oct 2009 06:14:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15483&amp;PID=54280&amp;title=drag-drop-between-2-treeviews#54280</guid>
  </item> 
 </channel>
</rss>