M
M. A. Naveed
well i'm having almost the same problem. I'm displaying page wise records in
an aspx page. (DNA archecture using enterprise service and remoting)
Suppose the user has requested to see data from the customer table. The
customer table may contain 100 or even thousands of records, and I do not
want to fetch all records from the customer table, so I break up the result
into pages of data by using Top 25 Clause in SQL Select Statement and the
result is sorted by a unique column say IdentityColumn, each time when user
hits the next page button the next 25 records are to be fethced from the
table having greater value in unique id field of the last record of the
page.
The above page wise navigation is working fine. Now i'm having a different
scenario which i need to find some solution of it.
Now user wants to sort records at any coulum dislaying in a grid which is
not necessarily be unique. The problem is, which records are to be fetched
when user clicks on the Next Page button, the sorted column may not be
unique this time.
For Example, Homail Inbox, i can change sorting column to any one and
navigate inbox pages accordingly :0)
How do I navigate pages in this situation? im not fetching all the records
from the table, performance issue is critical.
Please comments,
thanks and regards,
M. A. Naveed
(e-mail address removed)
----- Original Message -----
From: Alvin Bruney [MVP]
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Tuesday, March 02, 2004 11:34 AM
Subject: Re: Strategy for Sorting in UI
Your post went unanswered. Have you resolved this issue?
an aspx page. (DNA archecture using enterprise service and remoting)
Suppose the user has requested to see data from the customer table. The
customer table may contain 100 or even thousands of records, and I do not
want to fetch all records from the customer table, so I break up the result
into pages of data by using Top 25 Clause in SQL Select Statement and the
result is sorted by a unique column say IdentityColumn, each time when user
hits the next page button the next 25 records are to be fethced from the
table having greater value in unique id field of the last record of the
page.
The above page wise navigation is working fine. Now i'm having a different
scenario which i need to find some solution of it.
Now user wants to sort records at any coulum dislaying in a grid which is
not necessarily be unique. The problem is, which records are to be fetched
when user clicks on the Next Page button, the sorted column may not be
unique this time.
For Example, Homail Inbox, i can change sorting column to any one and
navigate inbox pages accordingly :0)
How do I navigate pages in this situation? im not fetching all the records
from the table, performance issue is critical.
Please comments,
thanks and regards,
M. A. Naveed
(e-mail address removed)
----- Original Message -----
From: Alvin Bruney [MVP]
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Tuesday, March 02, 2004 11:34 AM
Subject: Re: Strategy for Sorting in UI
Your post went unanswered. Have you resolved this issue?