BO Interation through BO in Ultragrid


Author
Message
Michael Reese
Michael Reese
StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K

I have a Ultragrid that I am trying to populate a cell with a reference to a BO other than the primary BO. The problem that when the grid loads the BOSubjectGrid.TypeCodes value does not update to relative to the record in the GridRow. However, the record does populate in the grid row.

Example

Private Sub UltraGrid1_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles grdVSubjects.InitializeRow

Dim BORecordType As New ORION_BO.BOGenRecTypeCodes

BORecordType.FillByPrimaryKey(BoSubjectGrid.RecTypeID)

e.Row.Cells("RecType").Value = BORecordType.Description

End Sub

Any thoughts ???

Thanks Michael


StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
So, when the event fires, the BoSubjectGrid business object is always on the same record?  I don't think that the grid actually "navigates" the business object to the proper record.  What you'll need to do is use the e.Row.Index property to move the business object before you try to grab the BoSubjectGrid.RecTypeID field.

BoSubjectGrid.MoveAbsolute(e.Row.Index)

Michael Reese
Michael Reese
StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)StrataFrame User (411 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Yep, that did it!!!

Thanks so much!

StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Excellent, great to hear Smile
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