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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. gridview paging using asp.net

gridview paging using asp.net

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpasp-net
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.
  • G Offline
    G Offline
    gunasundari
    wrote on last edited by
    #1

    I want to do paging can be done in gridview for in between pages i.e 1 to 2,2 to 3,..n to n..without using sqlserver ROW_Number () function.. it's urgent for me. Can anybody provide code or related article ..please.. Thanks, Guna Sundari.

    C K K 3 Replies Last reply
    0
    • G gunasundari

      I want to do paging can be done in gridview for in between pages i.e 1 to 2,2 to 3,..n to n..without using sqlserver ROW_Number () function.. it's urgent for me. Can anybody provide code or related article ..please.. Thanks, Guna Sundari.

      C Offline
      C Offline
      ceiral
      wrote on last edited by
      #2

      Hello Guna, Well I might not get your whole idea of gridview paging so please bear with me if I am wrong ;P but there are options in the GridView properties that allows for paging right? and recalling to my limited knowledge I don't think there is any need to use the SqlSever ROW_Number() function. This is my first time trying to give opinions and stuffs so sorry for any misguidance and lack of knowledge :sigh:

      1 Reply Last reply
      0
      • G gunasundari

        I want to do paging can be done in gridview for in between pages i.e 1 to 2,2 to 3,..n to n..without using sqlserver ROW_Number () function.. it's urgent for me. Can anybody provide code or related article ..please.. Thanks, Guna Sundari.

        K Offline
        K Offline
        kstls
        wrote on last edited by
        #3

        You can set AllowPaging to true in your gridview, then under the event PageIndexChanging for your gridview add a method that does something like: protected void YourGridViewName(object sender, GridViewPageEventArgs e) { YourGridViewName.PageIndex = e.NewPageIndex; YourGridViewName.DataBind(); }

        1 Reply Last reply
        0
        • G gunasundari

          I want to do paging can be done in gridview for in between pages i.e 1 to 2,2 to 3,..n to n..without using sqlserver ROW_Number () function.. it's urgent for me. Can anybody provide code or related article ..please.. Thanks, Guna Sundari.

          K Offline
          K Offline
          ksss_maheshece
          wrote on last edited by
          #4

          Add html in gridview tag Then In Business layer: Protected Sub gdcomp_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gdcomp.PageIndexChanging gdcomp.PageIndex = e.NewPageIndex End Sub I hope this is helpful for u. :thumbsup:

          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