﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Treeview Populating through a BO</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 08:34:05 GMT</lastBuildDate><ttl>20</ttl><item><title>Treeview Populating through a BO</title><link>http://forum.strataframe.net/FindPost6908.aspx</link><description>I am trying to populate a Treeview&amp;nbsp;with data from a&amp;nbsp;bo. The problem is that I get a non-unique key error. How can I loop through the entire BO from First to Last record?&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;For&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; LnCnt = 0 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;To&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; 100&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;FONT size=2&gt; node &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; UltraTreeNode = MainMenu.Nodes.Add (BoSite1.ID, BoSite1.SiteName)&lt;/P&gt;&lt;P&gt;node.LeftImages.Add(9)&lt;/P&gt;&lt;P&gt;node.Tag =&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2&gt; BoSite1.SiteName &amp;amp; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"~"&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; BoSite1.ID &amp;amp; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"~"&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"StartPage"&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;node.Key = node.Tag&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 19 Feb 2007 09:11:47 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Treeview Populating through a BO</title><link>http://forum.strataframe.net/FindPost6938.aspx</link><description>Hehe, will do :)</description><pubDate>Mon, 19 Feb 2007 09:11:47 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Treeview Populating through a BO</title><link>http://forum.strataframe.net/FindPost6927.aspx</link><description>Disregard this message!</description><pubDate>Sun, 18 Feb 2007 23:43:27 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item></channel></rss>