Please excuse me if this is a total newb question.
I'm trying to bind an entity collection generated by a SelfService template to Infragistic's UltraWinGrid.
Here’s the code:
Dim bpEntity As BusinessPartnerEntity = CType(ComboBox1.SelectedValue, BusinessPartnerEntity)
Dim bpId As Int32 = bpEntity.Bpid
Dim assets As New AssetsCollection
Dim sortOrder As ISortExpression = New SortExpression( _
FactoryClasses.SortClauseFactory.Create(AssetsFieldIndex.ZttagNbr, SortOperator.Ascending))
Dim filter As IPredicateExpression = New PredicateExpression
filter.Add(PredicateFactory.CompareValue(AssetsFieldIndex.Bpid, ComparisonOperator.Equal, bpId))
assets.GetMulti(filter, 99999, sortOrder)
UltraGrid1.DataSource = assets
UltraGrid1.DataBind()
I verified that the assets object contains the data that I want to display in the grid. The issue is that the call to set the DataSource hangs. I’ve tried everything I can think of to get around the problem.
Any suggestions?
Thank you in advance.
Rick