﻿<?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 » Business Objects and Data Access (How do I?)  » Not a child-form, a BBS-Problem?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 07 May 2026 15:49:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Not a child-form, a BBS-Problem?</title><link>http://forum.strataframe.net/FindPost32325.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;forget my last topic. After testing a bit more, ir has become clear that the error happens earlier before the the childfprm-dialog is called. So what now is easy to trace is the following:&lt;br/&gt;&lt;br/&gt;I have a datagridview with a bbs as datasource. After changing the sort-order by clicking on the header of a grid-column and then adding a new record to the BO with the add()-method. something in the bo gets out of sync and the bo does not&amp;nbsp;point to &amp;nbsp;the newly added record&amp;nbsp; but to some other record.&lt;br/&gt;&lt;br/&gt;Or, to illustrate it, say I have a tabke with three customers, "Cust1", "Cust2","Cust3". It opens with a select statement in the bo like "select *&amp;nbsp;from customers order by name". The BO is synced to BBS which is attached to Datagrdview. Now I chage the grids sortorder by clicking on a header to "city" ( or any other column.&lt;br/&gt;&lt;br/&gt;Now I call the add-method of the bo. A new record is added, but the "active" (or choosen) record the bo points to, is not the new one but for example the one containng "Cust2".&lt;br/&gt;&lt;br/&gt;Whe i do a bit of controlling in the code I notice that it does happen immediately after the add-method, für example this code already shows the error:&lt;br/&gt;&lt;br/&gt;[code]&lt;br/&gt;&lt;br/&gt;kundenbo1.add() &lt;br/&gt;&lt;br/&gt;msgbox(kundenbo1.name)&amp;nbsp; shows already "cust2" instead of an empty string&lt;br/&gt;&lt;br/&gt;[/code]&lt;br/&gt;&lt;br/&gt;Did I miss something there or is this a bug?. Is the BO/BBS not able to handle the chaning of the sort-order in the grid or do I have to do something extra about it.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Mon, 02 Dec 2013 21:40:32 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Not a child-form, a BBS-Problem?</title><link>http://forum.strataframe.net/FindPost32328.aspx</link><description>Hi Thomas,&lt;br/&gt;&lt;br/&gt;Glad it worked for you!!!</description><pubDate>Mon, 02 Dec 2013 21:40:32 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Not a child-form, a BBS-Problem?</title><link>http://forum.strataframe.net/FindPost32327.aspx</link><description>Hi Edhy,&lt;br/&gt;&lt;br/&gt;thanks&amp;nbsp;a lot for your help. Now it works properly.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Mon, 02 Dec 2013 06:24:29 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Not a child-form, a BBS-Problem?</title><link>http://forum.strataframe.net/FindPost32326.aspx</link><description>Hi Thomas,&lt;br/&gt;&lt;br/&gt;I use a lot of BBS but with DevExpress controls including the GridView.&amp;nbsp; I remember long time ago when I tried to use the native .net datagridview, I had all kind of issues.&lt;br/&gt;&lt;br/&gt;That asside, be aware that when manipulating data via the Business Objects, just must be very careful with the current BO Sort and Filter because if when adding a record and a filter is in place, the record will not be shown in the BO current view and probably the same would happen with the BO sort, so in your case, before adding a new record, temporarily reset the BO.Sort property and see if that fix the problem, something like this:&lt;br/&gt;&lt;span&gt;[codesnippet]&lt;br/&gt;&lt;/span&gt;Dim currentBoSort as String = &lt;span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;/span&gt;&lt;/span&gt;kundenbo1.Sort&lt;br/&gt;&lt;span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;/span&gt;&lt;/span&gt;kundenbo1.Sort = String.Empty&lt;br/&gt;&lt;span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;/span&gt;&lt;/span&gt;kundenbo1.add()&lt;br/&gt;msgbox(kundenbo1.name)&amp;nbsp; shows already "cust2" instead of an empty string&lt;span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;kundenbo1.Sort = &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;currentBoSort &lt;br/&gt;&lt;/span&gt;[/codesnippet]&lt;/span&gt;</description><pubDate>Sun, 01 Dec 2013 20:33:10 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>