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
65
Loading many rows from database - showing in grid
posted

Hello together,

my company has many tables with much more rows. So i had programmed a background loader, that loads these rows into da .net dataset.

Now my question is:

Is it possible to show the rows of a table while the table get filled? This means, that the ultra grid has to show the rows which are currently in this table.

Currently it is, that all rows will be displayed, after the load has finished.

 If it is possible it would be very great.

Best regards,

The LittleProgrammer

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    This is possible, but it's not easy. You cannot bind the grid to a data source that is being populated on another thread, because the data source will send notifications to the grid that are not on the same thread and this is almost certain to cause problems. If you are going to use a separate thread, then you have to make sure that the data is properly marshalled to the UI Thread. It's really too complex a subject to discuss in a forum post, but I don't think what you are trying to do is very practical. After all, if you load the data onto the UI thread in parts, then it would defeat the purpose of using the background thread... if you are going to do that, you might as well just load the data on the UI Thread. 

    The WinGrid does have Load-On-Demand functionality, but you would probably need to use the UltraDataSource as an intermediary between the grid and the data source. Again, I'm not sure threading would help here. 

Children