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
420
ExpandAll Issue on hierachical dataset
posted

I have a fairly simple ultrawingrid which is bound to a hierachical dataset(1parent - multiple childs). Parent has around 4000 records and each parent has 0-5 child records.

I have a button that calls the code

myUltraGrid1.Rows.ExpandAll(false);

This code is taking forever to execute. I created a sample screen and there are no additional events that are getting fired.

Any pointers on how expandall and collapseall functionalities can be implemented in such scenarios.

Thanks

Sonal

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Sonal,

        I doubt there is anything you can do to make this faster. DataSets are not very efficient when they go to retrieve the child rows for any particular parent row.

        The best suggestion I can offer you is to use a more efficient data source, like UltraDataSource or a BindingList<> if you can.

Children
No Data