﻿<?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?)  » ChildForm Dialog Issue</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 21:11:01 GMT</lastBuildDate><ttl>20</ttl><item><title>ChildForm Dialog Issue</title><link>http://forum.strataframe.net/FindPost12161.aspx</link><description>I have a child form that contains a grid, with BBS, and two business objects. I placed a childformdialog control on my parent form and entered my business object translation items.&amp;nbsp; I checked the datatables on my child form business objects and everything is fine, however my grid will not display the data.&amp;nbsp;(My textbox's are fine).&amp;nbsp;The only way I can get it to display the records on the grid is to actually fill the business object within the child form itself.&lt;/P&gt;&lt;P&gt;Any ideas on how I can solve this issue without filling the business object on the child form?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Fri, 26 Oct 2007 09:14:10 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: ChildForm Dialog Issue</title><link>http://forum.strataframe.net/FindPost12203.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I see the data is populated by time it hits the Load event but not in the constructor.&amp;nbsp; I have tried a number of ways to 'refresh' the data, however I still can't get the data to appear.&lt;/P&gt;&lt;P&gt;1) I've tried setting the grid's datasource at run-time, as suggested. No Luck.&lt;/P&gt;&lt;P&gt;2) I tried Ben's suggestion of creating a new class, inherit from business binding source, add a method 'ResetDataSource' to call &lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Me&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.OnListChanged(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; ListChangedEventArgs(ListChangedType.Reset, -1))&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT size=2&gt;I emailed you a sample project I put together simulating what I'm trying to accomplish. I would appeciate if you could take a quick look to make sure I'm not missing something.&lt;/FONT&gt;&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;Tim&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 26 Oct 2007 09:14:10 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: ChildForm Dialog Issue</title><link>http://forum.strataframe.net/FindPost12175.aspx</link><description>[quote]Any ideas on how I can solve this issue without filling the business object on the child form?[/quote]&lt;/P&gt;&lt;P&gt;This has to do with the instantiation order.&amp;nbsp; The reason you are seeing this behavior is because at the time the grid is being populated the BOs have not yet been translated.&amp;nbsp; If you wait until further down the execution string, for example the OnLoad of the form, you will see the populated BOs.&amp;nbsp; For example, if you put a breakpoint in the constructor of the form, you will see that the BOs on the child form do not have any records in it.&amp;nbsp; However, if you put the breakpoint in the Load after the Base call, you will see that it will have records.&lt;/P&gt;&lt;P&gt;[codesnippet]Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.OnLoad(e)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Check for records here&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub[/codesnippet]&lt;/P&gt;&lt;P&gt;So you may need to "refresh" the grid or not bind the BBS to the grid until after the load to get the behavior you are expecting.</description><pubDate>Wed, 24 Oct 2007 22:03:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>