How do I databind Autocomplete Collection of  a Textbox to a database?

Posted on 2006-04-12
Last Modified: 2012-08-13
 I have a project that requires a fairly large (10,000 items) autocomplete list for various textboxes. I would prefer to have this list directly databound to a data source as opposed to iterating through a recordset and loading the list with a loop. The ability to apply a SQL query to this list is also very important.

  The AutocompleteCustomSource property of the textbox seems like a starting point but I am sketchy on the details of how to go about actually binding a datasource to it.

 Is this the way to go about this or am I misreading what the AutocompleteCustomSource property actually is used for?
Question by:kkamm
    LVL 8

    Expert Comment

    Not sure if this what you are lookng for..
    LVL 1

    Author Comment

    Not really.

     I guess the crux of the matter is that I do not want to iterate through a returned dataset in order to load up the AutocompleteStringCollection list . I can do that in VB 6.

    I would prefer the functionality of having the AutocompleteStringCollection list being directly bound to a data source. (In this case a SQL query)

    So i guess the real question would be: is it possible to databind a Collection in VB.Net to a SQL query?
    LVL 1

    Author Comment

    I went with a third-party .Net control from Skybound Software ( which does what I need.

    Accepted Solution

    Closed, 500 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now