|
-
Jun 16th, 2005, 12:16 AM
#1
Thread Starter
Lively Member
Dataset paging Internal concept
hi,
i cant understand the internal archietecture of dataset paging, about how it handles Paging,. Can any send some article related to internal working concept of Dataset.
My main Doubt is:
if i navigate to another page in datagrid, it connects to DB or where it gets next page content?
-
Jun 16th, 2005, 02:19 AM
#2
Member
Re: Dataset paging Internal concept
The artical below shows an example of how to achieve paging in a datagrid by avoiding database calls each time the page is changed.
Click here to view this page
Note: This example uses a session variable to store the dataset object. Since the dataset of probably required only for the page and not for the entire session, using a session variable would not be advisable. Use a ViewState variable instead.
Nikhil Aggarwal

-
Jun 16th, 2005, 09:31 AM
#3
Re: Dataset paging Internal concept
 Originally Posted by mahivr
My main Doubt is:
if i navigate to another page in datagrid, it connects to DB or where it gets next page content?
Your assumtion is correct. Datagrid paging is not really proper pagin in a sense that, every time it will go to the database and fetch "All" data and only show n number you specified in Page Size. For most small application it is sufficient but for enterprise level you will have to do your custom paging using SQL Server and Stored Procedure. Do a search on google or 4guysfromrolla.com you will find examples.
Also like the previous poster mentioned, do not use session varable to store DataSet, that is very bad practice and should be avoided at all cost...
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|