|
-
Jan 7th, 2009, 05:32 PM
#1
Thread Starter
Fanatic Member
[2008] Paging solution for datagridview
I need to quickly fill a datagridview but there are over 10,000 records.
What is the best paging solution to use in cases like these ? Should I use a backgroundworker ?
-
Jan 7th, 2009, 06:20 PM
#2
Re: [2008] Paging solution for datagridview
Paging implies not retrieving all the data until it's needed, i.e. a page at a time. The DataGridView has a VirtualMode property. You should read the documentation for that to see how it's done and whether that's what you actually want.
-
Jan 7th, 2009, 06:20 PM
#3
Re: [2008] Paging solution for datagridview
-
Jan 7th, 2009, 07:42 PM
#4
Thread Starter
Fanatic Member
Re: [2008] Paging solution for datagridview
Thank you very much for the pointers. Virtual mode with just-in-time loading seems suitable.
Is it then necessary to use a backgroundworker to load the datagridview ?
-
Jan 7th, 2009, 07:53 PM
#5
Re: [2008] Paging solution for datagridview
 Originally Posted by Xancholy
Thank you very much for the pointers. Virtual mode with just-in-time loading seems suitable.
Is it then necessary to use a backgroundworker to load the datagridview ?
Nope. The idea is that you only load one page of data at a time, so each individual page loads quickly, instead of loading all the data in one go, which would take longer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|