BrowseDialog to Grid


Author
Message
Michael Reese
Michael Reese
Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
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

 


Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.
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