on-internet
← Community

Incremental loading in grid using DataTable as DataSource

Stack Overflow ·

In my Windows application, there are many screens with grid. I have used a DataTable as data source of the grid, and the DataTable has some really large data sets (> 50,000), which take a lot time to load data onto the screen if we load all at a time while loading the UI get un-responsive till all data not get loaded. I have implemented incremental loading in that grid using a background worker. Here is the code: // DoWork Event of the background Wroker. private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { try { while (bgstop) { e.Result = addNewRecord(); if (Convert.ToBoo

Comments

Sign in or sign up to comment and upvote.

No comments yet.