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
1706
Simulate Bands with WinGrid
posted

Is there a way to simulate bands with the wingrid.
I have a datatable with a recursive relationship.  The problem is that the WinGrid can only display up to 100 bands and the data table may have more levels than this.
Do you have any suggestions for handling this issue?

Thank you,
Seradex

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Seradex,

    The grid limits the data to 100 bands because of the MaxBandDepth property. So if you need to show more data than that, you can simply set MaxBandDepth to a higher number (although there is always a limit - there's no way to have infinite bands).

    However, please note that this will not work very well in many cases. In my experience, the BindingManager in DotNet can't handle anywhere close to 100 bands. In fact, you will probably start experiencing severe performance problems at between 5 and 8 levels of hierarchy, depending on your data source.

    In reality, no human user could possibly work effectively with much more depth than that, anyway.

    If you don't need filtering, summaries, or exporting, you might consider using the UltraWinTree instead of the UltraWinGrid. The tree loads the data more efficiently on-demand. So it doesn't create all of the BindingManagers up front like the grid does. You will probably still run into performance problems using the tree, but they won't happen until the user actually drills down into the data.

Children