Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
How to stop loading child retation bands
posted

When a Ultragrid is bound to binding source and datasource set to Entity Framework Entity, the grid loads all the navigation entities as child relation. In some cases, the entity is related to many tables and when lazy loading enabled, it takes ever to load the form.  I also tried setting the grid to Single band though...

So is there any way we can just bind just the parent entity and not the relational entities.

  • 469350
    Offline posted


                this.ultraGrid1.DisplayLayout.MaxBandDepth = 1;
                this.ultraGrid1.DisplayLayout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.SingleBand;

    It's usually a good idea to set these property at design-time, especially if you are binding the grid at design-time.