ChildFormDialog problem with UltraGrid
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ChildFormDialog problem with UltraGridExpand / Collapse
Author
Message
Posted 04/27/2008 2:31:44 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Yesterday @ 6:50:45 PM
Posts: 103, Visits: 230
Hi,

I have a child form which opens with a translated BO already populated with several records. I have a BBS bound to the BO and an UltraGrid bound to the BBS. Via the debugger, I can see that the BO is populated with the records when the form opens and the toolbar operates just as if the records are there (i.e. the navigation buttons work okay). However, the UltraGrid doesn't show any records. I have tried doing a Refresh() on both the UltraGrid, the BO and the form but the records never show in the grid.

I guess I have to refresh the bindings to update the grid but I can't find out how. Can anyone point me in the right direction?

Thanks in advance.

Aaron

Post #15925
Posted 04/27/2008 5:32:56 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:54:01 AM
Posts: 4,104, Visits: 4,177
The problem is that the translated BO is not being used on the grid.  We don't enumerate all controls, etc. and update those references...that could get really slow.  So in a case like this, you need to manually "reset" the reference once it has been translated.  To do this, override the OnLoad and add your reset the reference after the MyBase.OnLoad call:

''' <summary>
''' Provide additional load logic
''' </summary>
''' <param name="e"></param>
''' <remarks></remarks>
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
    MyBase.OnLoad(e)

    '-- Reset the reference
    MyBBS.BusinessObject = MyFormBO
'-- You may then ned to reset the grid DataSource
MyGrid.DataSource = MyBBS
   
End Sub


Post #15935
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:48pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.