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. Web Development
  3. ASP.NET
  4. Datagrid Paging....

Datagrid Paging....

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasehelpquestion
3 Posts 3 Posters 1 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.
  • P Offline
    P Offline
    Prabs frm PGP
    wrote on last edited by
    #1

    Hi! Simply my prob is: For Datagrid i used 3 events: ItemCommand,Databound & PAgeindexchanged.. Here that Page index changed wnt work, Instead of that it redirects the page where i mentioned in the itemcommand event, this event takes the more preference than page index, How can we solve..? If u need more explanation: I hv the datagrid name as dg. i want to do paginng in that dg control. I am using c#. I fetched the imagebutton control name as img to the dg. If we clicks that img it has to go another form(Models.aspx). For this i used: dg_itemdatabound event for find the control (img) dg_itemcommand event for redirects to next page(Models.aspx) Now i used 3rd event for the same dg control: dg_Pageindexchanged event for paging. Problem is: I got the Prev & Next Buttons in the dg but if i clicks that one it redirects the page to Models.aspx (which is i mentioned in the itemcommand event) I am displaying the next form based on the click of the imagebutton dynamically.. instead of that it has to display the remaining values... I hope u got my problem.., How can we solve this one? Prabu.T

    _ P 2 Replies Last reply
    0
    • P Prabs frm PGP

      Hi! Simply my prob is: For Datagrid i used 3 events: ItemCommand,Databound & PAgeindexchanged.. Here that Page index changed wnt work, Instead of that it redirects the page where i mentioned in the itemcommand event, this event takes the more preference than page index, How can we solve..? If u need more explanation: I hv the datagrid name as dg. i want to do paginng in that dg control. I am using c#. I fetched the imagebutton control name as img to the dg. If we clicks that img it has to go another form(Models.aspx). For this i used: dg_itemdatabound event for find the control (img) dg_itemcommand event for redirects to next page(Models.aspx) Now i used 3rd event for the same dg control: dg_Pageindexchanged event for paging. Problem is: I got the Prev & Next Buttons in the dg but if i clicks that one it redirects the page to Models.aspx (which is i mentioned in the itemcommand event) I am displaying the next form based on the click of the imagebutton dynamically.. instead of that it has to display the remaining values... I hope u got my problem.., How can we solve this one? Prabu.T

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      have you given OnPageIndexChanged correctly in the html side?

      Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • P Prabs frm PGP

        Hi! Simply my prob is: For Datagrid i used 3 events: ItemCommand,Databound & PAgeindexchanged.. Here that Page index changed wnt work, Instead of that it redirects the page where i mentioned in the itemcommand event, this event takes the more preference than page index, How can we solve..? If u need more explanation: I hv the datagrid name as dg. i want to do paginng in that dg control. I am using c#. I fetched the imagebutton control name as img to the dg. If we clicks that img it has to go another form(Models.aspx). For this i used: dg_itemdatabound event for find the control (img) dg_itemcommand event for redirects to next page(Models.aspx) Now i used 3rd event for the same dg control: dg_Pageindexchanged event for paging. Problem is: I got the Prev & Next Buttons in the dg but if i clicks that one it redirects the page to Models.aspx (which is i mentioned in the itemcommand event) I am displaying the next form based on the click of the imagebutton dynamically.. instead of that it has to display the remaining values... I hope u got my problem.., How can we solve this one? Prabu.T

        P Offline
        P Offline
        postmaster programmingknowledge com
        wrote on last edited by
        #3

        Find an example at: http://www.programmingknowledge.com/datagridpaging.aspx[^]

        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