StrataFrame Forum

BrowseDialog to Grid

http://forum.strataframe.net/Topic6037.aspx

By Michael Reese - 1/22/2007

Hello,

I am using the Browsedialog to populate a BO that the Ultragrid is bound to. Everything is fine except that I need to call the InitializeRow since I am populating the Grid with data from other BOs. When the form loads the InitializeRow is called. When the BrowseDialog has completed, the gird will display the results but not execute the code in the InitializeRow event. Looks like I need to do a grid refresh? Where should I call a refresh.

Example

Dim BOSiteID As New ORION_BO.BOSite ' Create the BO

BOSiteID.FillByPrimaryKey(BoSubjectGrid.SiteID) ' Get the related record Info by the primary BO record Value

e.Row.Cells("ubSiteID").Value = BOSiteID.SiteName ' Populate to grid row with the foreign record value.

Michael

 

By Trent L. Taylor - 1/22/2007

If you handle the CurrentDataTableRefilled event or the Navigated event on the business object to which the records are copied, you can place your refresh there.