Results 1 to 3 of 3

Thread: Dataset paging Internal concept

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    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?

  2. #2
    Member Nikhil Aggarwal's Avatar
    Join Date
    Jun 2005
    Location
    New Delhi, India
    Posts
    36

    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

  3. #3
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: Dataset paging Internal concept

    Quote 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
  •  



Click Here to Expand Forum to Full Width