470,815 Members | 1,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Async dataset populating.....


Windows C#

I have some search screens in my app which can, with certain search params,
bring back thousands of rows, and can take ages to populate. So I am trying
to find a better way of them operating. One idea is to batch the results up.
So I could go and get the 1st 50 rows and populate the datagrid with those,
then when they scroll to the last of these 50 it goes and gets the next 50.

That got me thinking asynchronous. Would it be possible to fire off a
process that went to get all 10000 rows for example, but return them every 50
or so when it had them. So the process would fire off, and return the first
50, the user is free to peruse those while the process is busy in the
background getting the rest of the records, spitting them into the datagrid
every 50.

Is any of this possible? How?

Cheers

Steve
May 22 '06 #1
1 1566
Steve,

The method you ask for is in my idea "Paging". It is not assynchronous. For
ASPNet it is a part of the datagrid methods. For windowsforms we have some
samples on our website, but the name of that website is VB-Tips, so I assume
that you understand that there are no C# samples.

Cor

"Steve" <St***@discussions.microsoft.com> schreef in bericht
news:92**********************************@microsof t.com...

Windows C#

I have some search screens in my app which can, with certain search
params,
bring back thousands of rows, and can take ages to populate. So I am
trying
to find a better way of them operating. One idea is to batch the results
up.
So I could go and get the 1st 50 rows and populate the datagrid with
those,
then when they scroll to the last of these 50 it goes and gets the next
50.

That got me thinking asynchronous. Would it be possible to fire off a
process that went to get all 10000 rows for example, but return them every
50
or so when it had them. So the process would fire off, and return the
first
50, the user is free to peruse those while the process is busy in the
background getting the rest of the records, spitting them into the
datagrid
every 50.

Is any of this possible? How?

Cheers

Steve

May 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by amber | last post: by
reply views Thread by tonywn | last post: by
1 post views Thread by tony | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.