473,394 Members | 2,071 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,394 software developers and data experts.

Does GridView paging feature limit number of records coming back from database?

I was told that if calling lots of records from the database (let's say
100,000), that the GridView's paging feature would automatically "handle"
everything.
But the 100,000 records are still coming to the client, right? I mean, the
paging feature isn't somehow making calls to the database for 25 records at
a time or anything like that is it?

I remember in the past having to write nasty stored procedures that took in
what the last record was and how many to return to manually handle this sort
of thing without dumping 100,000 records all at once.

But does the GridView's paging feature truly do this?

Thanks for any insight,
Ron
Apr 15 '07 #1
3 3719
Hi,

You are correct, the standard paging does not reduce the server side result
set. And you need to use custom paging to achieve a more optimal solution
esp. for very large result sets. Of course SQL Server 2005 offers very nice
feature to support paging of queries.

Hope this helps

--
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor
"Ronald S. Cook" <rc***@westinis.comwrote in message
news:ey**************@TK2MSFTNGP03.phx.gbl...
>I was told that if calling lots of records from the database (let's say
100,000), that the GridView's paging feature would automatically "handle"
everything.
But the 100,000 records are still coming to the client, right? I mean,
the paging feature isn't somehow making calls to the database for 25
records at a time or anything like that is it?

I remember in the past having to write nasty stored procedures that took
in what the last record was and how many to return to manually handle this
sort of thing without dumping 100,000 records all at once.

But does the GridView's paging feature truly do this?

Thanks for any insight,
Ron

Apr 15 '07 #2
you can use dataset for such a feature
in .net 2005 it supports
you can call da.fill(ds,starting indx, number of records ,and
somenthin)
May 6 '07 #3
On Apr 15, 8:16 pm, "Chris Taylor" <chris_taylor...@hotmail.com>
wrote:
Hi,

You are correct, the standard paging does not reduce the server side result
set. And you need to use custom paging to achieve a more optimal solution
esp. for very large result sets. Of course SQL Server 2005 offers very nice
feature to support paging of queries.

Hope this helps

--
Chris Taylorhttp://dotnetjunkies.com/weblog/chris.taylor

"Ronald S. Cook" <r...@westinis.comwrote in messagenews:ey**************@TK2MSFTNGP03.phx.gbl. ..
I was told that if calling lots of records from the database (let's say
100,000), that the GridView's paging feature would automatically "handle"
everything.
But the 100,000 records are still coming to the client, right? I mean,
the paging feature isn't somehow making calls to the database for 25
records at a time or anything like that is it?
I remember in the past having to write nasty stored procedures that took
in what the last record was and how many to return to manually handle this
sort of thing without dumping 100,000 records all at once.
But does the GridView's paging feature truly do this?
Thanks for any insight,
Ron- Hide quoted text -

- Show quoted text -
Note, the GridView does an optimized paging with the ObjectDataSource
control.

How Paging Works in the GridView Control
http://msdn2.microsoft.com/en-us/library/5aw1xfh3.aspx

May 6 '07 #4

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

Similar topics

4
by: karunakar rao | last post by:
Hi All I need some help. I have been populated 50,000 Records in asp.net C# datagrid. Ever page has 10 records Example "<< Prev 1 2 3 4 5 6 7 8 9 10 Next>> Iam showing like that in my...
4
by: news.microsoft.com | last post by:
I've looked in the help and at each of the properties for the grid view, but can't seem to find what I need. I have allowpaging set to true for my gridview and when the page loads I go and fetch...
2
by: | last post by:
Hello, I have a GridView in my ASP.NET 2.0 application that performs the paging feature perfect when I have it bound to a data source. But now I have it bound to a dataset and the paging...
8
by: AG | last post by:
ASP.NET 2.0, VS 2005 I have a gridview with paging enabled, bound to an objectdatasource. Both were dropped on to the page and configured via the wizards. Basically working as expected. The...
8
by: Greg Lyles | last post by:
Hi all, I'm trying to develop an ASP.NET 2.0 website and am running into some real problems with what I thought would be a relatively simple thing to do. In a nutshell, I'm stuck on trying to...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
0
by: news.ipartners.pl | last post by:
Hello, I've run across problem with paging in gridview. I have 2 elementson my web page - drop down list filled with manufacturers and grid view for displaying data connected with certain...
7
by: underground | last post by:
I have a problem that I've spent countless hours on and I'm more than certain this is a obviuos issue to an expert but I am still learning. I have a paging script that I have modified to display a...
1
by: rbrowning1958 | last post by:
Hello, I wonder whether someone can explain to me how data is fetched from a database server when using ASP.NET 2.0's gridview with paging enabled? My SQL DataSource has a simple "select * from...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.