Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

paging search results

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ramu - 09 Feb 2007 16:01 GMT
is there any control which I can use to display search results using
paging, I don't want to get all the results from database, instead I
want to make a database call to get the results for each page. can I
use datagridview or listview control to page through the search
results and make database call on page index changed event?
Ciaran O''Donnell - 12 Feb 2007 10:11 GMT
I dont know of any way of doing this automatically as there isnt a nice way
to say to all databases, give me results 10 - 20. You can use in SQLServer
"Select Top 20" but then on the next page you would need to select top 30,
plus the other problem is that because you are rerunning the whole query for
this, the resources are used again and the results may be different.
The best way to do this might be to create a datareader and then keep it
open and populate a datatable as people move through the data. This would
stop the data having to be moved to the client until needed but the query
would need to run to return it all.

Why do you need this functionality as there may be a different option.

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> is there any control which I can use to display search results using
> paging, I don't want to get all the results from database, instead I
> want to make a database call to get the results for each page. can I
> use datagridview or listview control to page through the search
> results and make database call on page index changed event?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.