﻿<?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?)  » Business Object navigating in middle of adding new row</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 04 Jul 2026 01:04:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Business Object navigating in middle of adding new row</title><link>http://forum.strataframe.net/FindPost30205.aspx</link><description>I have a simple windows form with one primary BO and two child bo's. I have MaintenanceFormToolStrip on the form.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;When i want to add new i click new on the&amp;nbsp;MaintenanceFormToolStrip &amp;nbsp;, which puts the controls bound to the parent bo in editable state. When i am entering values in the third control the bo suddenly navigates to next record and the state of the row changes from added to unchanged and then to modified.&amp;nbsp;And the controls are filled with the next record values.When the BO navigates to the next record it does not invoke any events(navigating or navigated).&lt;br/&gt;&lt;br/&gt;&lt;div&gt;i know this is very confusing and&amp;nbsp;weird.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Can someone please guide me how to fix it?</description><pubDate>Tue, 26 Jul 2011 16:32:43 GMT</pubDate><dc:creator>Ruchika Garg</dc:creator></item><item><title>RE: Business Object navigating in middle of adding new row</title><link>http://forum.strataframe.net/FindPost30209.aspx</link><description>Ruchika,&lt;br/&gt;&lt;br/&gt;If you have a Treeview control,&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt; then I am sure in one of the events you are either moving the record pointer and this could be tricky.&amp;nbsp; Definately a quick sample would be the way to go if you can duplicate the problem in the sample and you are using the .Net TreeView control.&lt;br/&gt;&lt;/span&gt;</description><pubDate>Tue, 26 Jul 2011 16:32:43 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Business Object navigating in middle of adding new row</title><link>http://forum.strataframe.net/FindPost30208.aspx</link><description>&lt;div&gt;Thanks for the reply.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;The form has a treeview and when some clicks a node on the treeview the right side of the form gets filled with data from the parent and child bo's.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Tahoma, Arial; font-size: 13px; line-height: 21px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "&gt;&lt;ol style="margin-top: 18px; margin-right: 0px; margin-bottom: 24px; margin-left: 24px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="margin-top: 5px; margin-right: 25px; margin-bottom: 5px; margin-left: 25px; "&gt;Are you using any control in the form binded to the child BOs? - No none of the controls are bound to the child bo's.&amp;nbsp;&lt;/li&gt;&lt;li style="margin-top: 5px; margin-right: 25px; margin-bottom: 5px; margin-left: 25px; "&gt;Are you setting the relationship between child and parent BO somewhere? Yes i the parent child relation ship between the bos' is set at the bo level and at the form level.&lt;/li&gt;&lt;li style="margin-top: 5px; margin-right: 25px; margin-bottom: 5px; margin-left: 25px; "&gt;Are you handling any BO or Form events related to the BO navigation or alike? yes i am and in that event i fill the child bo.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;I am working on trying to create a small application and reproduce this issue there.&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;</description><pubDate>Tue, 26 Jul 2011 14:53:09 GMT</pubDate><dc:creator>Ruchika Garg</dc:creator></item><item><title>RE: Business Object navigating in middle of adding new row</title><link>http://forum.strataframe.net/FindPost30206.aspx</link><description>[quote][b]Ruchika Garg (7/26/2011)[/b][hr]i know this is very confusing and&amp;nbsp;weird.[/quote]&lt;br/&gt;Yeap, sounds very confusing. &lt;span&gt;:hehe:&lt;/span&gt;&lt;br/&gt;The fastest way to deal with this is to create a small sample application using the StrataFrameSample database to simulate the functionality you are looking for, then post it in the forums so we can see and fix.&lt;br/&gt;&lt;br/&gt;You said you have 1 parent and 2 child business objects, here are several questions:&lt;br/&gt;&lt;ol&gt;&lt;li&gt;Are you using any control in the form binded to the child BOs?&lt;/li&gt;&lt;li&gt;Are you setting the relationship between child and parent BO somewhere?&lt;/li&gt;&lt;li&gt;Are you handling any BO or Form events related to the BO navigation or alike?&lt;/li&gt;&lt;/ol&gt;As you can see this could be very tricky to figure out without looking at the code, but once you understand the Business Object logic and concept it is very easy to manage multiple relationships.&amp;nbsp; There are several post in the forums related to that topic.</description><pubDate>Tue, 26 Jul 2011 14:32:56 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>