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. Visual Basic
  4. ComboBox Search AutoSuggest

ComboBox Search AutoSuggest

Scheduled Pinned Locked Moved Visual Basic
question
8 Posts 6 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.
  • S Offline
    S Offline
    SIlviaTerzi
    wrote on last edited by
    #1

    Hello, I need to extend the ComboBox control so that while the user types text, it automatically displays its drop-down containing only those of its items that contain the text being typed by the user. This is almost similar to using AutoCompleteMode = Suggest and AutoCompleteSource = ListItems but It must show not only items that start with the text being typed but all that have it as substring. How can I achieve this? Thanks Silvia Terzi

    C L A 3 Replies Last reply
    0
    • S SIlviaTerzi

      Hello, I need to extend the ComboBox control so that while the user types text, it automatically displays its drop-down containing only those of its items that contain the text being typed by the user. This is almost similar to using AutoCompleteMode = Suggest and AutoCompleteSource = ListItems but It must show not only items that start with the text being typed but all that have it as substring. How can I achieve this? Thanks Silvia Terzi

      C Offline
      C Offline
      C1AllenS
      wrote on last edited by
      #2

      HellO Silvia, I would suggest you to try the ComponentOne C1Combo control. It provides you the AutoComplete feature that may fit your requirement. You can evaluate the control by downloading it from the given web link: http://prerelease.componentone.com/dotnet20/c1list/2007-t3/c1List.2_2.1.20073.132.zip[^] I hope this will help you. Regards, Allen

      Allen Smith Software Engineer ComponentOne LLC www.componentone.com

      S 1 Reply Last reply
      0
      • S SIlviaTerzi

        Hello, I need to extend the ComboBox control so that while the user types text, it automatically displays its drop-down containing only those of its items that contain the text being typed by the user. This is almost similar to using AutoCompleteMode = Suggest and AutoCompleteSource = ListItems but It must show not only items that start with the text being typed but all that have it as substring. How can I achieve this? Thanks Silvia Terzi

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        It will be better if you use the Text_Changed Event of the combobox to fill out the details as items by selecting from the database In the database we can use some query for filtration as like '%datahere%' before filling the data in the combo box we can clear all the previous items there.

        D S 2 Replies Last reply
        0
        • C C1AllenS

          HellO Silvia, I would suggest you to try the ComponentOne C1Combo control. It provides you the AutoComplete feature that may fit your requirement. You can evaluate the control by downloading it from the given web link: http://prerelease.componentone.com/dotnet20/c1list/2007-t3/c1List.2_2.1.20073.132.zip[^] I hope this will help you. Regards, Allen

          Allen Smith Software Engineer ComponentOne LLC www.componentone.com

          S Offline
          S Offline
          SIlviaTerzi
          wrote on last edited by
          #4

          Yes, it's good. But how much is this?

          C 1 Reply Last reply
          0
          • S SIlviaTerzi

            Yes, it's good. But how much is this?

            C Offline
            C Offline
            C1AllenS
            wrote on last edited by
            #5

            Hello, You can visit our website www.componentone.com for details to purchase the control. Regards, Allen

            Allen Smith Software Engineer ComponentOne LLC www.componentone.com

            1 Reply Last reply
            0
            • S SIlviaTerzi

              Hello, I need to extend the ComboBox control so that while the user types text, it automatically displays its drop-down containing only those of its items that contain the text being typed by the user. This is almost similar to using AutoCompleteMode = Suggest and AutoCompleteSource = ListItems but It must show not only items that start with the text being typed but all that have it as substring. How can I achieve this? Thanks Silvia Terzi

              A Offline
              A Offline
              akash_omsairam
              wrote on last edited by
              #6

              Here we set the ComboBox Property DropDownStyle=DropDownList after setting the combobox property user only select a value from this list ,user can't write any in this combobox. If user want to add more values in this list, user set the combobox property "Items", Here user can write our values :)

              1 Reply Last reply
              0
              • L Lost User

                It will be better if you use the Text_Changed Event of the combobox to fill out the details as items by selecting from the database In the database we can use some query for filtration as like '%datahere%' before filling the data in the combo box we can clear all the previous items there.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Your seriously going to consider doing a database fetch on every keystroke in the control?? :omg: Think about the number of records you could possibly return, possible network speeds involved, how long to fetch and transfer those records, wipe out and repopulate the combo's list, yada, yada, yada, ... and you'll see how bad of a solution this is.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                1 Reply Last reply
                0
                • L Lost User

                  It will be better if you use the Text_Changed Event of the combobox to fill out the details as items by selecting from the database In the database we can use some query for filtration as like '%datahere%' before filling the data in the combo box we can clear all the previous items there.

                  S Offline
                  S Offline
                  Saiyed Alam
                  wrote on last edited by
                  #8

                  There is no event name "Text_Changed" under combo box of wpf.

                  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