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
125
Grid layout, ChildBand addition extremely slow
posted

I have read the available post regarding this issue, and none of the suggestion considerably improve performance.  I am using many (MANY!) child bands.  The child bands are identical in format, and layout.  Essentially, my program loops through my file system and groups certain files into individual child bands.  This is mostly for usability as having the groups separate visually is very convenient and makes acting on these items very easy.  

Performance-wise, this really isn't viable.  Is there another mechanism by with I could achieve the same thing?  I am new to the whole Databand thing.  I've been using Infragistics since around version 4 and am now adapting to the DataBands.  Mostly I would like something like the very poor represantation below

The number of Groups and files in each are unknown at runtime and the grid is built dynamically as conditions are met.

+GROUP1

       File 1

       File 2

       File 3

+Group2

       File 1

       File 2

+Group 3

       File 1

       File 2

       File 3

       File 4 

     

Parents
  • 469350
    Offline posted

    Hi,

    It depends on the needs of your application, but if you have a very large number of child bands, then you may not be able to use DataBinding.

    In DotNet, each island of data requires a BindingManager, and binding a large number of bands becomes increasingly inefficient exponentially. In my experience anything more than between 5 to 8 levels of data will become unusable due to performance issues.

    It's not entirely clear from your post what your data structure is. When you say you have a lot of bands, are you talking about one root band with lots of direct children? Or are you talking about many levels of children, grandchildren, great grandchildren, etc. Typically, it is the depth that causes a problem and not the breadth. One root band can have a coupe of dozen child bands without a problem, but trying to have one band at each level down 5 levels will start to see a decrease in performance.

    If you can't get what you want using DataBinding because of performance, than maybe you could consider using the UltraWinTree control instead of the UltraWinGrid and instead of binding it to a data source, copy the data into the tree directly. That should give you much better performance, at the cost of some feature like summaries, printing, filtering, and exporting.

    Another possible solution would be to try using UltraDataSource and manually populating it with a copy of your data. The UltraDataSource tends to be more efficient that the DataSet, but DataBinding is still involved, so you might still have a problem.

Reply Children