Infragistics Windows Forms UltraGrid

Posts   
 
    
Aglaia avatar
Aglaia
LLBLGen Pro Team
Posts: 535
Joined: 07-Sep-2003
# Posted on: 21-Aug-2007 14:15:24   

Question: When I bind an entity collection with entity objects to an Infragistics winforms control, my application hangs and crashes. When I bind the same collection to the equivalent .NET control, it works fine. What causes this? ** Solution:** Infragistics controls read, when they see that objects in a binded collection contain collection properties, all the objects inside these collections as well, to a depth of 100 by default. This will thus read your entire database into memory. To avoid this, set the property MaxBandDepth of your Infragistics control to 1. Now, the control will use the lazy loading logic implemented in the entity objects.