Solved

How to load data as needed in a DataSet

Posted on 2006-10-20
4
167 Views
Last Modified: 2010-04-23
Hi!

my ask is so simple. I only want to know if exist any way, in Visual Studio 2005, to load data in a DataSet as needed. I mean, in example when i use a BindingNavigator, i want to load more rows of a table when i have saw a 95% of the current loaded rows, and i want to do it automatically...Exists any way to do this? Java has an implementation of this functionality in his dataQuery object, can i do the same with a Dataset or DataTable or DataAdapter object or i have to do it with several querys?

Thanks in advance!
0
Comment
Question by:Synth2
4 Comments
 
LVL 10

Expert Comment

by:Kinger247
ID: 17783910
I don't know of an automated way to do this, but I would personally create the Dataset manually then keep adding to it as and when.
Would be easy enough to do ...
0
 
LVL 41

Accepted Solution

by:
graye earned 60 total points
ID: 17802995
in VB.Net 2005, the DataAdapter's Fill method as a new "overload" that allows you to fill a datatable in "chunks"...   For example, you could create a loop that would fill 1000 rows at a time, then update a progress bar (as an example), and continue to fill the DataTable with 1000 rows at a time.

http://msdn2.microsoft.com/en-us/library/kxs7kbfe.aspx
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now