<?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 : How to drag records to TreeView-control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : How to drag records to TreeView-control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 19:25:52 +0000</pubDate>
  <lastBuildDate>Tue, 05 Oct 2010 09:26:45 +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=17356</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[How to drag records to TreeView-control : Thanks a lot you guys. I now manage...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60697&amp;title=how-to-drag-records-to-treeviewcontrol#60697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 05 October 2010 at 9:26am<br /><br />Thanks a lot you guys. I now manage to drag and drop records from the reportcontrol to the treeview. But I have a new drag and drop-problem with the TreeView-control(This should maybe be in the Controls section). I cant manage do drag and drop nodes within the TreeView-control. Drag Reportcontrol-records to a treeview-node works fine, but I cant drag and drop a treeview-node to another treeview-node., I dont get any events. I dont get to show the PlusMinus-sign on the Treeviewcontrol-nodes when I have icons on the nodes either. Someone help please?]]>
   </description>
   <pubDate>Tue, 05 Oct 2010 09:26:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60697&amp;title=how-to-drag-records-to-treeviewcontrol#60697</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control :  Ah, I see it is a problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60650&amp;title=how-to-drag-records-to-treeviewcontrol#60650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 02 October 2010 at 9:14pm<br /><br />Ah, I see it is a problem with Internet Explorer - I use Firefox, and it works fine for copying and pasting text from within the code tags. I don't know if it's a forum bug or an IE bug.<br><br>I'll try to upload test projects, it's just a bit more time consuming...<br><br><br><br><br>]]>
   </description>
   <pubDate>Sat, 02 Oct 2010 21:14:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60650&amp;title=how-to-drag-records-to-treeviewcontrol#60650</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control :   jpbro wrote:Hi Aaron, thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60645&amp;title=how-to-drag-records-to-treeviewcontrol#60645</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 02 October 2010 at 11:43am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jpbro" alt="Originally posted by jpbro" style="vertical-align: text-bottom;" /> <strong>jpbro wrote:</strong><br /><br />Hi Aaron, thanks for testing it out, I'll open a ticket.<BR><BR>I don't know why you can't copy &amp; paste my code - I've just put it between {code}{/code} tags (with square brackets, not braces), and I am able to copy &amp; paste it fine. How do you post your code snippets?<BR></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I just type code in message as text (if code is too long, most of the time I upload test project)</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>'Test copy/paste (I put the code in brackets as well)</DIV><DIV>With Me.wndReportControl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .PaintManager<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ColumnStyle = xtpColumnOffice2007<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FormulaSumColor = vbRed<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With</DIV><DIV>End With</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>So if I copy above from forum I get this:</DIV><DIV>&nbsp;</DIV><DIV>'Test copy/paste (I put the code in brackets as well)<BR>With Me.wndReportControl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .PaintManager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ColumnStyle = xtpColumnOffice2007&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FormulaSumColor = vbRed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>End With&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 02 Oct 2010 11:43:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60645&amp;title=how-to-drag-records-to-treeviewcontrol#60645</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control : Hi Aaron, thanks for testing it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60642&amp;title=how-to-drag-records-to-treeviewcontrol#60642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 02 October 2010 at 9:37am<br /><br />Hi Aaron, thanks for testing it out, I'll open a ticket.<br><br>I don't know why you can't copy &amp; paste my code - I've just put it between {code}{/code} tags (with square brackets, not braces), and I am able to copy &amp; paste it fine. How do you post your code snippets?<br>]]>
   </description>
   <pubDate>Sat, 02 Oct 2010 09:37:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60642&amp;title=how-to-drag-records-to-treeviewcontrol#60642</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control :   jpbro wrote:  Interestingly,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60638&amp;title=how-to-drag-records-to-treeviewcontrol#60638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 02 October 2010 at 2:27am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jpbro" alt="Originally posted by jpbro" style="vertical-align: text-bottom;" /> <strong>jpbro wrote:</strong><br /><br /><DIV>&nbsp;</DIV><DIV>&#091;...&#093;<BR>Interestingly, your posts have turned up 2 apparent bugs in the TreeView control:<BR><BR>1) You can't set the OleDropMode property in code only, you must set it in the VB6 property browser.<BR>2) The Treeview doesn't update the +/- icon after you add items in the OleDragDrop event, so you have to hide/show the control as a hack/workaround to refresh it.<BR><BR><B>CAN ANYONE CONFIRM THESE BUGS IN 13.4.1?</B> I haven't installed it yet, but I'd like to know if they are still bugs before I open tickets.<BR><BR>Thanks.<BR></td></tr></table> </DIV><DIV>&nbsp;</DIV><DIV>Hi Jason,</DIV><DIV>&nbsp;</DIV><DIV><DIV>I tried with V13.4.1&nbsp;and problem <strong>1</strong> seems&nbsp;to be solved so&nbsp;I guess you have to open one ticket <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV></DIV><DIV>(for plus/minus issue)</DIV><DIV>&nbsp;</DIV><DIV>btw Jason, I'm not able to copy/paste your code in "normal way". I have&nbsp;to click QUOTE and copy/paste your code&nbsp;(between the &#091;code&#093; section)&nbsp;Only this way it will be pasted right way. Is there another way to get the code? Thanks in advance.&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 02 Oct 2010 02:27:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60638&amp;title=how-to-drag-records-to-treeviewcontrol#60638</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control : You can use the HitTest method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60635&amp;title=how-to-drag-records-to-treeviewcontrol#60635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 01 October 2010 at 3:22pm<br /><br />You can use the HitTest method of the TreeView control to determine the node that the mouse is over when the drop operation occurs. So:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private m_ClipboardFormat As Long<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp; With Me.TreeView1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Enable OLE drop mode for the Treeview<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .OLEDropMode = xtpOLEDropManual&nbsp; ' BUG: TreeView won't fire OLE* events when this value is set in code<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - only works when set in the VB6 Property Browser<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowLines = xtpTreeViewShowLinesAtRoot<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ShowPlusMinus = True<br>&nbsp;&nbsp; End With<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; With Me.ReportControl1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Columns.Add 0, "", 100, True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Add some dummy records<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "a"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "b"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "d"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "e"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "f"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Register the report control clipboard/dragdrop format.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' We will use the return value to get data out of the drag &amp; drop data object<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ClipboardFormat = .EnableDragDrop("ABC", xtpReportAllowDragCopy)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; End With<br>End Sub<br><br>Private Sub TreeView1_OLEDragDrop(ByVal Data As XtremeSuiteControls.DataObject, Effect As Long, ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)<br>&nbsp;&nbsp; Dim lo_Records As XtremeReportControl.ReportRecords<br>&nbsp;&nbsp; Dim i As Long<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; Dim lo_Node As TreeViewNode<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Determine if we dropped the reportcontrol records onto a treeview node<br>&nbsp;&nbsp; Set lo_Node = Me.TreeView1.HitTest(x, y)<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Create a ReportRecords collection from the dropped data<br>&nbsp;&nbsp; Set lo_Records = Me.ReportControl1.CreateRecordsFromDropArray(Data.GetData(m_ClipboardFormat))<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Add the items in the ReportRecords collection to the TreeView<br>&nbsp;&nbsp; For i = 1 To lo_Records.Count<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.TreeView1.Nodes.Add IIf(lo_Node Is Nothing, Empty, lo_Node), IIf(lo_Node Is Nothing, Empty, xtpTreeViewChild), , lo_Records.Record(i - 1).Item(0).Value<br>&nbsp;&nbsp; Next i<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' BUG: TreeView doesn't update +/- button after OLE Drag &amp; Drop,<br>&nbsp;&nbsp; ' so hide &amp; show the control to force redraw as a hack/workaround<br>&nbsp;&nbsp; With Me.TreeView1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Visible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Visible = True<br>&nbsp;&nbsp; End With<br>End Sub<br></pre></td></tr></table><br><br><br>Interestingly, your posts have turned up 2 apparent bugs in the TreeView control:<br><br>1) You can't set the OleDropMode property in code only, you must set it in the VB6 property browser.<br>2) The Treeview doesn't update the +/- icon after you add items in the OleDragDrop event, so you have to hide/show the control as a hack/workaround to refresh it.<br><br><b>CAN ANYONE CONFIRM THESE BUGS IN 13.4.1?</b> I haven't installed it yet, but I'd like to know if they are still bugs before I open tickets.<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Fri, 01 Oct 2010 15:22:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60635&amp;title=how-to-drag-records-to-treeviewcontrol#60635</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control : Thank you jpbro. Do you know how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60613&amp;title=how-to-drag-records-to-treeviewcontrol#60613</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 01 October 2010 at 1:59am<br /><br />Thank you jpbro. Do you know how I can find wich node(the index) in the tree the records are dropped to, so I can add my records under that node]]>
   </description>
   <pubDate>Fri, 01 Oct 2010 01:59:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60613&amp;title=how-to-drag-records-to-treeviewcontrol#60613</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control : Here&amp;#039;s a basic example (you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60610&amp;title=how-to-drag-records-to-treeviewcontrol#60610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 30 September 2010 at 5:02pm<br /><br />Here's a basic example (you should check whether or not the dropped data is from a ReportControl in your production code). <br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private m_ClipboardFormat As Long<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp; With Me.TreeView1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Enable OLE drop mode for the Treeview<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .OLEDropMode = xtpOLEDropManual<br>&nbsp;&nbsp; End With<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; With Me.ReportControl1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Columns.Add 0, "", 100, True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Add some dummy records<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "a"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "b"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "d"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "e"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Records.Add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AddItem "f"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Register the report control clipboard/dragdrop format.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' We will use the return value to get data out of the drag &amp; drop data object<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ClipboardFormat = .EnableDragDrop("ABC", xtpReportAllowDragCopy)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Populate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; End With<br>End Sub<br><br>Private Sub TreeView1_OLEDragDrop(ByVal Data As XtremeSuiteControls.DataObject, Effect As Long, ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)<br>&nbsp;&nbsp; Dim lo_Records As XtremeReportControl.ReportRecords<br>&nbsp;&nbsp; Dim i As Long<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Create a ReportRecords collection from the dropped data<br>&nbsp;&nbsp; Set lo_Records = Me.ReportControl1.CreateRecordsFromDropArray(Data.GetData(m_ClipboardFormat))<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Add the items in the ReportRecords collection to the TreeView<br>&nbsp;&nbsp; For i = 1 To lo_Records.Count<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.TreeView1.Nodes.Add , , , lo_Records.Record(i - 1).Item(0).Value<br>&nbsp;&nbsp; Next i<br>End Sub<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Thu, 30 Sep 2010 17:02:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60610&amp;title=how-to-drag-records-to-treeviewcontrol#60610</guid>
  </item> 
  <item>
   <title><![CDATA[How to drag records to TreeView-control : I wonder if anyone can show me...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60607&amp;title=how-to-drag-records-to-treeviewcontrol#60607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6039">CapoPezzio</a><br /><strong>Subject:</strong> 17356<br /><strong>Posted:</strong> 30 September 2010 at 2:38pm<br /><br />I wonder if anyone can show me how to drag and drop records from a ReportControl to a node in a TreeView-control(Codejocks Treeviewcontrol. Small example would be nice. Thank you]]>
   </description>
   <pubDate>Thu, 30 Sep 2010 14:38:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17356&amp;PID=60607&amp;title=how-to-drag-records-to-treeviewcontrol#60607</guid>
  </item> 
 </channel>
</rss>