Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Custom Datagrid Pager

Custom Datagrid Pager

Scheduled Pinned Locked Moved ASP.NET
helptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lildragon
    wrote on last edited by
    #1

    Hi, I'm wondering if anyone out there has any information on how to create a datagrid with a custom pager that doesn't require stored procedures. My webpage has one datagrid that gets bound to a datasource based on the link the user has clicked on from the menu. I can get the pager to work numerically and I want to be able to specify how many pages to display, how many items to display, and to have next, last, previous, first links on the datagrid that will also page through the datagrid. help please. thank you.

    C M Z 3 Replies Last reply
    0
    • L lildragon

      Hi, I'm wondering if anyone out there has any information on how to create a datagrid with a custom pager that doesn't require stored procedures. My webpage has one datagrid that gets bound to a datasource based on the link the user has clicked on from the menu. I can get the pager to work numerically and I want to be able to specify how many pages to display, how many items to display, and to have next, last, previous, first links on the datagrid that will also page through the datagrid. help please. thank you.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      lildragon wrote: Hi, I'm wondering if anyone out there has any information on how to create a datagrid with a custom pager that doesn't require stored procedures Weird - why would paging require a SP ? Why would you not use SP, anyhow ? lildragon wrote: My webpage has one datagrid that gets bound to a datasource based on the link the user has clicked on from the menu. So what is the nature of the datasource ? lildragon wrote: I want to be able to specify how many pages to display, how many items to display, and to have next, last, previous, first links on the datagrid that will also page through the datagrid. If you're getting the full data set, then doesn't the datagrid allow you to set paging automatically ? Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • L lildragon

        Hi, I'm wondering if anyone out there has any information on how to create a datagrid with a custom pager that doesn't require stored procedures. My webpage has one datagrid that gets bound to a datasource based on the link the user has clicked on from the menu. I can get the pager to work numerically and I want to be able to specify how many pages to display, how many items to display, and to have next, last, previous, first links on the datagrid that will also page through the datagrid. help please. thank you.

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        Hi there, In addition to store procedures, there are many ways to implement the custom paging for the datagrid control, here is just one of them: Paging In ASP.NET[^]

        1 Reply Last reply
        0
        • L lildragon

          Hi, I'm wondering if anyone out there has any information on how to create a datagrid with a custom pager that doesn't require stored procedures. My webpage has one datagrid that gets bound to a datasource based on the link the user has clicked on from the menu. I can get the pager to work numerically and I want to be able to specify how many pages to display, how many items to display, and to have next, last, previous, first links on the datagrid that will also page through the datagrid. help please. thank you.

          Z Offline
          Z Offline
          zitniet
          wrote on last edited by
          #4

          This is a great article about paging (large recordsets): http://www.codeproject.com/aspnet/PagingLarge.asp[^] or look here: http://www.dotnetjunkies.com/Tutorial/EA868776-D71E-448A-BC23-B64B871F967F.dcik[^] I actually implemented the temp table approach and i can tell you that it kicks ass! Goodluck soldier! Zitniet.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups