UltraWinGrid databinding hangs

Posts   
 
    
rboarman
User
Posts: 83
Joined: 01-Feb-2005
# Posted on: 12-Oct-2005 19:36:24   

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

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 13-Oct-2005 02:51:11   

Check that MaxBandDepth is set to 1 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=197 If that doesn't work let us know if you are defining the columns for the grid? Are you doing any custom code for each row's databind event? Also you may try binding to a windows datagrid and see if it also hangs then.