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

Datagrid paging using SQL - pulling back <n> records at a time with exact counts

Hello All,

I am developing a web front end using the standard datagrid in the 1.1
framework. Currently it allows users to navigate through records 20 at
a time via previous and next buttons. This functionality is working
nicely and efficiently. I like this because I dont have to grab ALL the
records on each trip, just the next or previous 20. I am having a
terrible time creating the exact counts for the data grid navigation.
I use a method to get a count of the total records on the first initial
search. However creating the logic for building the exact count logic
while navigating forwards and backwards is tough. I would like to be
able to say "showing records 1-20 then 20-40 and then 40-43" (Assuming
the full search results in 43 records returned). Does anyone have (or
know of) a solid example of this. I know a lot of sites used this type
of functionality but I am not sure of the best approach. Any help
would
be greatly appreciated.

Sep 28 '06 #1
3 1667
q
I know it doesn't help... but this is all built into ASP.NET 2.0.

db******@progressive.com wrote:
Hello All,

I am developing a web front end using the standard datagrid in the 1.1
framework. Currently it allows users to navigate through records 20 at
a time via previous and next buttons. This functionality is working
nicely and efficiently. I like this because I dont have to grab ALL the
records on each trip, just the next or previous 20. I am having a
terrible time creating the exact counts for the data grid navigation.
I use a method to get a count of the total records on the first initial
search. However creating the logic for building the exact count logic
while navigating forwards and backwards is tough. I would like to be
able to say "showing records 1-20 then 20-40 and then 40-43" (Assuming
the full search results in 43 records returned). Does anyone have (or
know of) a solid example of this. I know a lot of sites used this type
of functionality but I am not sure of the best approach. Any help
would
be greatly appreciated.
Sep 28 '06 #2
That is good news. Can you point me further? I am more than willing
to explore the 2.0 framework if this functionality is available. Is
this something available in a newer version of the datagrid?? Thanks
for the responce.

q wrote:
I know it doesn't help... but this is all built into ASP.NET 2.0.

db******@progressive.com wrote:
Hello All,

I am developing a web front end using the standard datagrid in the 1.1
framework. Currently it allows users to navigate through records 20 at
a time via previous and next buttons. This functionality is working
nicely and efficiently. I like this because I dont have to grab ALL the
records on each trip, just the next or previous 20. I am having a
terrible time creating the exact counts for the data grid navigation.
I use a method to get a count of the total records on the first initial
search. However creating the logic for building the exact count logic
while navigating forwards and backwards is tough. I would like to be
able to say "showing records 1-20 then 20-40 and then 40-43" (Assuming
the full search results in 43 records returned). Does anyone have (or
know of) a solid example of this. I know a lot of sites used this type
of functionality but I am not sure of the best approach. Any help
would
be greatly appreciated.
Sep 29 '06 #3
Just following up on my own post I found some things on Microsoft that
outlines usage of the gridview. The ASP.NET GridView control is the
successor to the v1.x DataGrid.

http://quickstarts.asp.net/QuickStar.../gridview.aspx

dbark...@progressive.com wrote:
That is good news. Can you point me further? I am more than willing
to explore the 2.0 framework if this functionality is available. Is
this something available in a newer version of the datagrid?? Thanks
for the responce.

q wrote:
I know it doesn't help... but this is all built into ASP.NET 2.0.

db******@progressive.com wrote:
Hello All,
>
I am developing a web front end using the standard datagrid in the 1.1
framework. Currently it allows users to navigate through records 20 at
a time via previous and next buttons. This functionality is working
nicely and efficiently. I like this because I dont have to grab ALL the
records on each trip, just the next or previous 20. I am having a
terrible time creating the exact counts for the data grid navigation.
I use a method to get a count of the total records on the first initial
search. However creating the logic for building the exact count logic
while navigating forwards and backwards is tough. I would like to be
able to say "showing records 1-20 then 20-40 and then 40-43" (Assuming
the full search results in 43 records returned). Does anyone have (or
know of) a solid example of this. I know a lot of sites used this type
of functionality but I am not sure of the best approach. Any help
would
be greatly appreciated.
Sep 29 '06 #4

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

Similar topics

2
by: trusst_3 | last post by:
Hello, This is the only line in my entire code that does not validate in XHTML : <td width="24" bgcolor="#330066" onclick="javascript:color1()" class="borderWidthr"></td> However, it is...
0
by: Dnf | last post by:
Hallo It is possible to force property of the control whith is of Hashtable (Dictionary<T>) type to serialize its content in Design-Time ?? -- Dominik Jeske
8
by: Christian Stigen Larsen | last post by:
Consider the following: class parent { public: virtual void print() { printf("Parent\n"); } }; class child : public parent {
13
by: Jalal | last post by:
I am trying to use numeric_limits<double>::min() in an MFC application in Microsoft Visual C++.NET 2003. I am having some difficulties here. The following are the parts of a simple program I wrote...
2
by: Mike | last post by:
This works fine in Netscape 7.1, but not at all in IE. I'm using it to pop up a tool tip. Any workarounds for Internet Explorer? Thanks, Mike
1
by: sklett | last post by:
Hi- I am using an <img> tag in a DataList. Here is the code: <img src='~/Images/<%# DataBinder.Eval(Container.DataItem, "Img")%>' runat="server"> This results in: " />
0
by: Lynn | last post by:
Hello, I have a datagrid setup, and I have the records in the datagrid displayed by a date range. I would like to use some custom paging, but am unsure of how to get this to work when the...
0
by: adebaene | last post by:
Hello all, Has everyone tried to use the functions taking a Predicate in Generics container in C++/CLI? Say I have a List<MyClass^>^ my_array, and I want to call RemoveAll on it. How would...
3
by: Chris Jones | last post by:
Hi, I've experimenting with using boost::pool_allocator with std::vector and gcc (4.1)., and I am having problems with segmentation violations. Below I give a simple example of one way I am...
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: 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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.