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. Is there a way to do a find search in gridview?

Is there a way to do a find search in gridview?

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasequestion
5 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.
  • B Offline
    B Offline
    blurMember
    wrote on last edited by
    #1

    Using C#, I have a gridview where I populate the database from the database. The gridview will display many records. I wish to include a textbox for user to enter the admin number he/she wish to find. And a button for the user to click. The gridview will then filter and show the rows of records of that admin number. How should I work around with it? Should I control the gridview by the textbox or button?

    thanks in advance. Much appreciated.

    M 1 Reply Last reply
    0
    • B blurMember

      Using C#, I have a gridview where I populate the database from the database. The gridview will display many records. I wish to include a textbox for user to enter the admin number he/she wish to find. And a button for the user to click. The gridview will then filter and show the rows of records of that admin number. How should I work around with it? Should I control the gridview by the textbox or button?

      thanks in advance. Much appreciated.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, IMO, the simple way is to repopulate the datasource and bind it to the gridview control to display the search result. Adn you can do in the common way that many other sites do with a textbox for inputting and a button/imagebutton to execute the search.

      B 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, IMO, the simple way is to repopulate the datasource and bind it to the gridview control to display the search result. Adn you can do in the common way that many other sites do with a textbox for inputting and a button/imagebutton to execute the search.

        B Offline
        B Offline
        blurMember
        wrote on last edited by
        #3

        minhpc_bk wrote:

        And you can do in the common way that many other sites do

        Yes I was thinking to do the same thing. But I was wondering how they do it? Is there any sample link?

        thanks in advance. Much appreciated.

        M 1 Reply Last reply
        0
        • B blurMember

          minhpc_bk wrote:

          And you can do in the common way that many other sites do

          Yes I was thinking to do the same thing. But I was wondering how they do it? Is there any sample link?

          thanks in advance. Much appreciated.

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          blurMember wrote:

          But I was wondering how they do it? Is there any sample link?

          It's not difficult, you can get started with the Starter kits[^]

          B 1 Reply Last reply
          0
          • M minhpc_bk

            blurMember wrote:

            But I was wondering how they do it? Is there any sample link?

            It's not difficult, you can get started with the Starter kits[^]

            B Offline
            B Offline
            blurMember
            wrote on last edited by
            #5

            Hey Thanks!!!! It will be used in the next years to come.

            thanks in advance. Much appreciated.

            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