﻿<?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?)  » TreeList problem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 25 Jun 2026 03:51:44 GMT</lastBuildDate><ttl>20</ttl><item><title>TreeList problem</title><link>http://forum.strataframe.net/FindPost15243.aspx</link><description>A have a Devexpress treelist populated with a BO (using BussinessDataSource), and a second BO (the primary Forms BO) and a MaintenanceFormBarManager.&lt;/P&gt;&lt;P&gt;When I edit the BO and click the save button, the treelist &lt;FONT size=2&gt;FocusedNodeChanged event fires some times before the BO is saved. I use this event to change the primaryBO object and retrieve the BO selected in the tree, therefore, I cant save changes, because before it gets saved, the events fire and change my BO several time.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;I have done a workarround checking in the FocusedNodeChanged if the BO is dirty but I think this is a bug or I'm missing something. Why when I click on the MaintenanceFormBarManager Save button, the treelist FocusedNodeChanged is fired?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have done some test.&lt;/P&gt;&lt;P&gt;If a call the BO.Save() event, all works fine.&lt;/P&gt;&lt;P&gt;If a call the Form.Save() event, the same issue occur (the treelist focusednodechanged event fires). Is this a Devexpress bug?&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Alex B.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 02 Apr 2008 16:23:14 GMT</pubDate><dc:creator>Alex Bibiano González</dc:creator></item><item><title>RE: TreeList problem</title><link>http://forum.strataframe.net/FindPost15351.aspx</link><description>Glad you found your problem :)</description><pubDate>Wed, 02 Apr 2008 16:23:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: TreeList problem</title><link>http://forum.strataframe.net/FindPost15345.aspx</link><description>I found my problem. The BO I used to fill the treeview was included in the the list of navigate BO (&lt;FONT size=2&gt;GetListOfNavigateBOs method). I set the form property IncludeInFormSaveType to PrimaryBusinessObject and all works like a charm.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Wed, 02 Apr 2008 15:54:12 GMT</pubDate><dc:creator>Alex Bibiano González</dc:creator></item><item><title>RE: TreeList problem</title><link>http://forum.strataframe.net/FindPost15255.aspx</link><description>It's probably in the way the tree is syncing with the CurrencyManager of the BusinessBindingSource.&amp;nbsp; When you save, a Navigated event might be firing, which will cause the CurrencyManager.CurrentChanged event to fire.&amp;nbsp; If the tree is listening to this event, then it will likely move the selection to that node and re-raise its event.&amp;nbsp; Some deep nesting of events is likely what's happening.&amp;nbsp; However, I don't think the business object raises the Navigated event until &lt;EM&gt;after&lt;/EM&gt; the business object is done saving, so it's a mystery as to exactly what's happening in this case.</description><pubDate>Mon, 31 Mar 2008 09:02:52 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>