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. General Programming
  3. C#
  4. DataGridView that searches like outlook

DataGridView that searches like outlook

Scheduled Pinned Locked Moved C#
question
4 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.
  • R Offline
    R Offline
    robmays
    wrote on last edited by
    #1

    Does the datagridview in vs2005 work like outlook. ie I know it works the same when you click the column headings but in outlook you can move to rows in that column by pressing say 's' to move the record selector to the beginning of all the 'S' in the column you have just ordered by. if it does how do you active that functionality. If not is there one can buy that will do the same?

    N 1 Reply Last reply
    0
    • R robmays

      Does the datagridview in vs2005 work like outlook. ie I know it works the same when you click the column headings but in outlook you can move to rows in that column by pressing say 's' to move the record selector to the beginning of all the 'S' in the column you have just ordered by. if it does how do you active that functionality. If not is there one can buy that will do the same?

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      robmays wrote:

      If not is there one can buy that will do the same?

      Wow! You go for the cash pretty quickly!!:) Even though DataGridView doesn't support this feature natively, you can make it by two simple steps: 1- Change the DataGridView.EditMode to EditOnEnter for example -ie. Anything that doesn't include KeyStroke-. 2- Handle the DataGridView.KeyPress event -or any other key event-, and put the code that goes through the rows -using a foreach loop- to check your desired column if it starts with the specific key the user entered. PS. You can add the feature of supporting two-or three strokes search -like the windows explorer. ie. searching for "sam" not just "s"-, by storing the keystrokes in a temp string and clear that string after a small timer elapse to start over a new search if the user presses a key.

      Regards:rose:

      R 1 Reply Last reply
      0
      • N Nader Elshehabi

        robmays wrote:

        If not is there one can buy that will do the same?

        Wow! You go for the cash pretty quickly!!:) Even though DataGridView doesn't support this feature natively, you can make it by two simple steps: 1- Change the DataGridView.EditMode to EditOnEnter for example -ie. Anything that doesn't include KeyStroke-. 2- Handle the DataGridView.KeyPress event -or any other key event-, and put the code that goes through the rows -using a foreach loop- to check your desired column if it starts with the specific key the user entered. PS. You can add the feature of supporting two-or three strokes search -like the windows explorer. ie. searching for "sam" not just "s"-, by storing the keystrokes in a temp string and clear that string after a small timer elapse to start over a new search if the user presses a key.

        Regards:rose:

        R Offline
        R Offline
        robmays
        wrote on last edited by
        #3

        excellent ,dont like to spend money. can you give me some simple c# code to steer me in the right direction? that you would use in the events.

        N 1 Reply Last reply
        0
        • R robmays

          excellent ,dont like to spend money. can you give me some simple c# code to steer me in the right direction? that you would use in the events.

          N Offline
          N Offline
          Nader Elshehabi
          wrote on last edited by
          #4

          Ummm.... Did you notice point number 2 in my previous post? What is it that's not clear about it?

          Regards:rose:

          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