Digambar Malla
Digambar Malla

Reputation: 335

Lazy Loading in winforms

I have a winform app where I have to get the data from web service and show it in UI. As the data is more I want to load the data batch wise(i.e when gets the data initially, it should bring only 10 records from DB and next time next 10 records from DB and so on...). The requirement is every-time I call the Web Service it should give only 10 records but not all, so that data loading time will be less as there are thousands of data.

How to do this.

Can I implement lazy loading in winform ???

Upvotes: 0

Views: 1540

Answers (1)

Radin Gospodinov
Radin Gospodinov

Reputation: 2323

The best way to to this is to add paging support to your service and client. Then make the call async and get 10 records per page. If you post you code I can help you with the update.

Upvotes: 1

Related Questions