c# - How to quickly load approximately 1 million rows of data in a form? -


we have little c# winforms application connected sql server database.

we using radgridview (tabbed) control display data approximately 10 different views stored in sql server.

we have thread running each view (tab) grabbing data , populating each radgridview tab.

our problem taking way long load.

how speed data retrieval?

here's control looks like: enter image description here

you cannot load 1,000,000 rows quickly, because that's lot of data rdbms's disk through network memory of application. however, not mean application bound slow: long give end-users perception data there ready see it, consider application fast.

the users think loaded data if load data top few thousand rows on initial page first, load remaining data initial page, , start loading data other tabs.

as go tab-by-tab in background, load top hundred rows in each tab, when end-users click tab, see data there. code should load rest of data when user opens tab: chances are, never open of tabs, helping application save both on processing , on data transfer.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -