Hello.
If you setup a grid with a bindingsource that references a table with a self relating relationship, the grid seems to "LOCK UP" whenever you want to adjust properties in the designer (ie design mode). It's only happen on tables with self relating keys.
i'm using VS 2008
WinGrid creates all the BindingManagers it needs up-front. So if your data structure is infinitely recursive, you will end up hitting some serious performance problems after about 5 to 8 levels of the hierarchy.
What you should do is set MaxBandDepth on the grid to somewhere between 5 and 8 to limit the depth of the grid.
Hi Mike
Thanks for the quick reply.
I understand what you're saying, however the control by defaults sets MaxBandDepth to 100 which is ok, but it only does that if you add the control, and then cancel the UltraGrid Designer which starts automatically.
If you don't cancel the designer and go on and set up the datasource/member, the control will lock up and hang VS.
Therefore I think there is a bug in the UltraGrid Designer as it does not initialize MaxBandDepth to 100.
Hope this helps - i'll work around it for now. Btw, anyone seeing this post MaxBandDepth is located at Ultragrid.DisplayLayout.MaxBandDepth
Cheers
Peter
Hi Peter,
It's possible that the Designer is not honoring the limit of the MaxBandDepth. If that's the case, then it is a bug, and you should report it to Infragistics Developer Support so they can get it resolved:
Get Help