473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Paging a DataGrid or similar control...?

MJB
I have a windows application that returns 10s of thousands of rows to a
DataGrid (for all intents and purposes you can assume that it's a DataGrid,
I'm actually using the Infragistics UltraWinGrid though). Due to the ever
growing amount of data I want to implement some sort of record paging.
There are a lot of examples for ASP.Net but not many for windows
applications. I am planning to use some of the techniques used for ASP.Net,
but I was hoping someone out there may have a few suggestions specifically
for a windows application. Also, I am using MSDE as my database backend.

Thanks
Nov 16 '05 #1
1 4766
Several thousand rows from an MSDE? You are aware of the 4 gig limitation I
hope - just being prudent thats all. :)

As far as paging goes, the concepts are fairly the same between windows apps
or web apps, the only big difference being that windows apps allow you to
rely on the client a little bit more. You could in essence page without even
going to the server. You could store the dataset in one shot (if it's
practical enough), and using a dataview you could page from page to page.

Alternatively a rather simple of implementing paging is by using one of the
overloads of the dataadapter.fill method and specifying exactly what page
you are looking for (well almost that straightforward).

Depending upon your exact constraints, Your right answer is probably
somewhere between the above two.

- Sahil Malik
http://www.dotnetjunkies.com/weblog/sahilmalik

"MJB" <mb*@email.com> wrote in message
news:ey*************@TK2MSFTNGP09.phx.gbl...
I have a windows application that returns 10s of thousands of rows to a
DataGrid (for all intents and purposes you can assume that it's a DataGrid, I'm actually using the Infragistics UltraWinGrid though). Due to the ever
growing amount of data I want to implement some sort of record paging.
There are a lot of examples for ASP.Net but not many for windows
applications. I am planning to use some of the techniques used for ASP.Net, but I was hoping someone out there may have a few suggestions specifically
for a windows application. Also, I am using MSDE as my database backend.

Thanks

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: RelaxoRy | last post by:
sqlConnection1.Open(); myReader = sqlCommand1.ExecuteReader(); DataGrid1.DataSource = myReader; DataGrid1.DataBind(); myReader.Close(); sqlConnection1.Close(); The Datagrid populates fine. ...
0
by: Clement | last post by:
I have an user control(Control1) that dynamically adds another user control(Control2). In Control2, I am displaying data in a datagrid which I enable paging and sorting. When I click on the page...
1
by: Guadala Harry | last post by:
I understand that paging is a built-in feature of the DataGrid, and that paging is not built-in to other listing controls such as the DataList and the Repeater. I need to implement paging...
2
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
2
by: Daniel Walzenbach | last post by:
Hi, I have a question regarding the DataGrid control. If paging is enabled the grid binds the data, sets the paging on the top/bottom (or however it is set up) and throws away unnecessary...
2
by: Axel Dahmen | last post by:
Hi, I'm using a DataGrid control to show a table's content with paging. For navigation through the pages I'm using the DataGrid's intrinsic navigation section. My problem: The DataGrid...
3
by: Sachin | last post by:
Hi All, I am using ASP.NET 2.0 Tree control to display hierarachical data. However because of the size of the data, tree takes ages to load on the browser. For that reason, I want to build...
5
by: Donald Adams | last post by:
Hi, I will have both web and win clients and would like to page my data. I could not find out how the datagrid control does it's paging though I did find some sample code that says they do it...
6
by: cmrchs | last post by:
Hello, I have set the Allowpaging property to true in a standard DataGrid- control (System.Web.UI.WebControls). when run in the browser i get the first records in the first page, there are 5...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.