ChildFormDialog problem with UltraGrid


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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



Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search