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
104
dynamical load child bands
posted

Hi @ all,

 is there a way to load the childbands dynamical for every single row ?

So maybe if the user double_clicks on a parent row in a Grid, the childrows will be loaded from DB and connected to that parentrow. But not for all rows in the grid, only for the one clicked (or the selected ones at click).

I don't see any way to do that with the UltraGrid, because a Relation over two tables will be load every childs !?!

Parents
No Data
Reply
  • 37774
    posted

    One approach would be to use an UltraDataSource and the grid's Virtual mode (see the "1 million rows" sample that ships with the Windows Forms samples).  Another approach that I have seen is to not populate the row in the underlying child data source until the BeforeRowExpanded event, at which point you add the relevant data.

    -Matt

Children