﻿<?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?)  » Problem with UserControl and BBS and BO CurrentRowIndex</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 19 Sep 2026 22:44:58 GMT</lastBuildDate><ttl>20</ttl><item><title>Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22327.aspx</link><description>Hello&lt;br&gt;
&lt;br&gt;
I try to solve a problem since nearly 10 hours.&lt;br&gt;
I looked all the samples, Sourcecode from Strataframe but can't find solution. seems i am to stupid for &lt;br&gt;
this task.&lt;br&gt;
&lt;br&gt;
I had a SF-Usercontrol.&lt;br&gt;
&lt;br&gt;
In this  usercontrol i  add a Strata-EnhancedList.&lt;br&gt;
Add some properties for Datasource so i can set Datasource outside the Usercontrol.&lt;br&gt;
&lt;br&gt;
Then compile all fine.&lt;br&gt;
&lt;br&gt;
Drag the Control on a form, setup Datasource over BBS.&lt;br&gt;
&lt;br&gt;
Also all fine. All works&lt;br&gt;
&lt;br&gt;
The only thing i can't get running is  when Row changes BO will not move record pointer.&lt;br&gt;
CurrentRowIndex is always 0&lt;br&gt;
&lt;br&gt;
If i place EnhancedList directly on form and work with BBS then Record-Pointer will move.&lt;br&gt;
&lt;br&gt;
So where to hell is my Logical Error.&lt;br&gt;
&lt;br&gt;
I hope somebody can help me.............:hehe:&lt;br&gt;
&lt;br&gt;
i am using the latest beta...&lt;br&gt;
&lt;br&gt;
thanks a lot&lt;br&gt;
&lt;br&gt;
Rainer&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Sat, 14 Mar 2009 11:54:13 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22364.aspx</link><description>Glad you got it working. :)</description><pubDate>Sat, 14 Mar 2009 11:54:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22358.aspx</link><description>Hello Trent,&lt;br&gt;
&lt;br&gt;
I solved problem now in another way.&lt;br&gt;
&lt;br&gt;
I get from the tag field of Gridcontrol value and then seek in BO&lt;br&gt;
&lt;br&gt;
so all fine.&lt;br&gt;
&lt;br&gt;
I didn't post a sample because all Controls base on Devexpress. (newest Version 8.3.5)&lt;br&gt;
and i think you don't use this controls as i read in other threads.&lt;br&gt;
&lt;br&gt;
Thank you in anyway&lt;br&gt;
&lt;br&gt;
Rainer&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Fri, 13 Mar 2009 14:35:52 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22347.aspx</link><description>From what you ahve provided it is really hard to tell.&amp;nbsp; Do you have a filter or a sort on the BO?&amp;nbsp; Otherwise, you are going to have to post a sample so that I can see it in action.</description><pubDate>Thu, 12 Mar 2009 15:57:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22346.aspx</link><description>Hello Trent,&lt;br&gt;
&lt;br&gt;
Did you see my Answer on your last post ?&lt;br&gt;
&lt;br&gt;
thanks &lt;br&gt;
&lt;br&gt;
Rainer</description><pubDate>Thu, 12 Mar 2009 15:51:57 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22339.aspx</link><description>Hello Trent,&lt;br&gt;
&lt;br&gt;
I add a property to SF-UserControl.&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
&lt;br&gt;
&lt;System.ComponentModel.Category("MKS Datasource Properties")&gt;&lt;br&gt;
Public Property pmks_GridDataSource() As MicroFour.StrataFrame.Business.BusinessBindingSource&lt;br&gt;
&lt;br&gt;
        Get&lt;br&gt;
            Return _pmks_GridDataSource&lt;br&gt;
        End Get&lt;br&gt;
&lt;br&gt;
        Set(ByVal value As MicroFour.StrataFrame.Business.BusinessBindingSource)&lt;br&gt;
            _pmks_GridDataSource = value&lt;br&gt;
            GridControl.DataSource = value&lt;br&gt;
        End Set&lt;br&gt;
&lt;br&gt;
    End Property&lt;br&gt;
&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
I placed Control on Form.&lt;br&gt;
&lt;br&gt;
then i setup this property over properties window &lt;br&gt;
&lt;br&gt;
i assign this property BBS-Object.&lt;br&gt;
&lt;br&gt;
then call BO.Filldata("Select.....")&lt;br&gt;
&lt;br&gt;
Population of Control is Manual....&lt;br&gt;
&lt;br&gt;
thats all&lt;br&gt;
&lt;br&gt;
thanks &lt;br&gt;
&lt;br&gt;
Rainer&lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 12 Mar 2009 10:05:22 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22336.aspx</link><description>Well, then how are you getting the BO loaded within the user control?</description><pubDate>Thu, 12 Mar 2009 09:35:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22334.aspx</link><description>Hello Trent,&lt;br&gt;
&lt;br&gt;
No i don't use translationobject.&lt;br&gt;
&lt;br&gt;
I handle setup of columns all in DevExpress.Grid.&lt;br&gt;
&lt;br&gt;
also not clear for me which onload i should overwrite.....:hehe:&lt;br&gt;
&lt;br&gt;
thanks for you help&lt;br&gt;
&lt;br&gt;
Rainer</description><pubDate>Thu, 12 Mar 2009 09:28:10 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Problem with UserControl and BBS and BO CurrentRowIndex</title><link>http://forum.strataframe.net/FindPost22329.aspx</link><description>I am assumging that you are using the BO translations through the user control.&amp;nbsp; For grins, override the OnLoad of the user control and &lt;STRONG&gt;&lt;EM&gt;AFTER&lt;/EM&gt;&lt;/STRONG&gt; the MyBase.OnLoad(), reset the BO instances on the BBS.&lt;/P&gt;&lt;P&gt;[codesnippet]Protected Overrides Sub Onload()&lt;BR&gt;&amp;nbsp;&amp;nbsp; MyBase.OnLoad()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MyBBS.BusinessObject = MyBO&lt;BR&gt;End Sub[/codesnippet]&lt;/P&gt;&lt;P&gt;The instance of the BO may not be getting reset or reloaded dur to the translations.&amp;nbsp; So this will ensure that it gets reset. Do the same for any other BO instances on the control.</description><pubDate>Thu, 12 Mar 2009 09:08:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>