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. filtering search result

filtering search result

Scheduled Pinned Locked Moved ASP.NET
question
3 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.
  • H Offline
    H Offline
    hi_everybody
    wrote on last edited by
    #1

    hi , i am using gridview for displaying search result. after getting the result i want to filter the result by selecting the value from dropdown list which is at the top of gridview.and one more thing when i am selecting any value from dropdownlist the search result should get changed according to selection without going back to the code behind... how can do that?

    D 1 Reply Last reply
    0
    • H hi_everybody

      hi , i am using gridview for displaying search result. after getting the result i want to filter the result by selecting the value from dropdown list which is at the top of gridview.and one more thing when i am selecting any value from dropdownlist the search result should get changed according to selection without going back to the code behind... how can do that?

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      Doing this on the client browser would mean using javascript to show and hide the grid rows which is not very easy. Since you are using gridview you cannot get a row id on the client script for each row. I would suggest you use AJAX to accomplish this. Put the grid inside an update panel and place a dropdown in the header and do the filtering from the serverside using AJAX. I'm not an AJAX expert so you have to dig up the details.

      4 1 Reply Last reply
      0
      • D Dinesh Mani

        Doing this on the client browser would mean using javascript to show and hide the grid rows which is not very easy. Since you are using gridview you cannot get a row id on the client script for each row. I would suggest you use AJAX to accomplish this. Put the grid inside an update panel and place a dropdown in the header and do the filtering from the serverside using AJAX. I'm not an AJAX expert so you have to dig up the details.

        4 Offline
        4 Offline
        4anusha4
        wrote on last edited by
        #3

        Find out the dropdown in the header row of the grid view and filter the dataview based on the selected value of the dropdown

        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