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. paging in grid view control

paging in grid view control

Scheduled Pinned Locked Moved ASP.NET
csshelp
4 Posts 3 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.
  • D Offline
    D Offline
    dalbhide bipin
    wrote on last edited by
    #1

    I want to implement paging in grid view control. I set the allowpaging property to true in properties of grid view control. But still it is not working. plz help me

    R V 2 Replies Last reply
    0
    • D dalbhide bipin

      I want to implement paging in grid view control. I set the allowpaging property to true in properties of grid view control. But still it is not working. plz help me

      R Offline
      R Offline
      Rahithi
      wrote on last edited by
      #2

      hi, just set the pagesize property of the Gridview in the design time or in the runtime thru coding. thanks, Rahi

      If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      1 Reply Last reply
      0
      • D dalbhide bipin

        I want to implement paging in grid view control. I set the allowpaging property to true in properties of grid view control. But still it is not working. plz help me

        V Offline
        V Offline
        varshavmane
        wrote on last edited by
        #3

        Put the following code: Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging Try GridView1.PageIndex = e.NewPageIndex() BindGridView()'Bind GridView Catch ex As Exception End Try End Sub Happy Coding:)

        D 1 Reply Last reply
        0
        • V varshavmane

          Put the following code: Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging Try GridView1.PageIndex = e.NewPageIndex() BindGridView()'Bind GridView Catch ex As Exception End Try End Sub Happy Coding:)

          D Offline
          D Offline
          dalbhide bipin
          wrote on last edited by
          #4

          thanks u very much.. Your and my coding style is same.. i did the same thing.. but do u know what is the disadvantage of paging in grid view control.. Once u click on second page it wil display the same page.. to show that data you need to retrieve the same data again.. coz gridview never maintain the history.. to see the next page you need to call the same procedure..

          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