Solved

ListView/DataGrid Viewable Records

Posted on 2004-10-05
2
281 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 125 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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