?
Solved

ListView/DataGrid Viewable Records

Posted on 2004-10-05
2
Medium Priority
?
290 Views
Last Modified: 2010-04-23
Hello all,
I have a little problem I can't seem to figure out.
I am querying an Oracle database to fill either a listview or a datagrid (either is fine or some other control) in order to view and "correct" some mistakes.  I can fill the listview/datagrid exactly as I want; this is easy; but my problem is that there are over 50,000 items that will fill the control (listview, datgrid, etc)  Obviously, no one wants to look at 50,000 items.  So...what I need to do is limit the  number of items shown to something that the user chooses (this number is stored in registry).
Example:
I would want to view only 100 items, correct them, re-query, view 100 items, correct them, re-query...etc.
I have tried a few things with listview.items.count...but to no avail.
Please help !!
Thanks,
AK
0
Comment
Question by:Akula
2 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 500 total points
ID: 12235577
U can use paging in a datagrid. U can set the paging size of the datagrid to 100. Some of the links to help u in paging are:

If u are using a windows application.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q305271&ID=kb;en-us;Q305271&SD=MSDN


If it is a web application
http://www.c-sharpcorner.com/asp/Code/northwindLC.asp
0
 
LVL 1

Author Comment

by:Akula
ID: 12248555
That did the trick !
Thanks,
Ak
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

864 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