Solved

ListView/DataGrid Viewable Records

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

17 Experts available now in Live!

Get 1:1 Help Now