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. Grid View

Grid View

Scheduled Pinned Locked Moved ASP.NET
cssdatabasehelp
3 Posts 2 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.
  • J Offline
    J Offline
    jithbiz0033
    wrote on last edited by
    #1

    Hi Guys, I am doing a search in which the results are displayed in a grid view.In the grid view attributes i have declared the PageSize=5 and PageIndex=10. My problem is when I have viewed the next pages in the grid view, If I give a new search condition the result set in the grid view loads with the same PageIndex. I would like to show my search result in the grid view starting from the first page, irrespective of the page index viewed for the last search. If anyone knows the solution or suggestion Please reply Thanks Jith

    U 1 Reply Last reply
    0
    • J jithbiz0033

      Hi Guys, I am doing a search in which the results are displayed in a grid view.In the grid view attributes i have declared the PageSize=5 and PageIndex=10. My problem is when I have viewed the next pages in the grid view, If I give a new search condition the result set in the grid view loads with the same PageIndex. I would like to show my search result in the grid view starting from the first page, irrespective of the page index viewed for the last search. If anyone knows the solution or suggestion Please reply Thanks Jith

      U Offline
      U Offline
      Urs Enzler
      wrote on last edited by
      #2

      Just set the PageIndex to 0 in the event handler of the search button. Not really difficult, or am I missing something?

      -^-^-^-^-^- no risk no funk ................... please vote ------>

      J 1 Reply Last reply
      0
      • U Urs Enzler

        Just set the PageIndex to 0 in the event handler of the search button. Not really difficult, or am I missing something?

        -^-^-^-^-^- no risk no funk ................... please vote ------>

        J Offline
        J Offline
        jithbiz0033
        wrote on last edited by
        #3

        Hi, I tried using Gridview1.PageIndex = 0; in the SubmitButton Click Event after DataBinding, but it is not working. thanks, jith

        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