''' <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
'-- Reset the reference MyBBS.BusinessObject = MyFormBO '-- You may then ned to reset the grid DataSource MyGrid.DataSource = MyBBS End Sub
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