Thank you.
..NET combox has autosuggest feature.
I think I can use this. In this case there is no need to implement
autocomplete in my code.
In thi case I need to capture autosuggest not found event and in this event
read matching row from sql server.
I searched google.com and live.com for a keywords "c# combobox" and looked
for results. I read all combobox arcticles from codeproject.com
Most result describe creating auto-complete and multi-column combobox.
I havent found any which describes creating virtual combobox or similar
control.
Which keywords I should use to search or where to find information about
creating such control ?
Andrus.
"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in
message news:274DF04B-E71B-4A98-8953-(E-Mail Removed)...
>I think what you want to do here is handle the keypress event, and after
> there are at least 2 or 3 letters typed, you would use this as a filter in
> the WHERE clause of your SQL Statement to return a small matching subset,
> and
> bind this to your control.
> There are a number of implementations of this for both Windows Forms and
> ASP.NET, you can find them easily with a well-constructed google or
> live.com
> search.
> Peter
>
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net
>
>
>
>
> "Andrus" wrote:
>
>> I'm creating a database Winforms application using VCS Express 2005
>>
>> I have some large lookup tables (may be up to 500000 records) which
>> contains name and id and are stored in sql server.
>>
>> I need to create single line combobox style control which:
>>
>> 1. Allows to type first characters in name
>> 2. Auto-completes entered data by using first match
>> 3. Allows to open picklist based by entered data and select name
>>
>> I tried to use Combobox with lookup table.
>> I can set combobox autocomplete source to lookup table and autocomplete
>> window shows matches very well.
>>
>> Lookup parts table is big, it takes a lot of time to load the
>> data source.
>>
>> I think I need virtual combobox control with autocomplete and selection
>> from
>> list.
>>
>> Is is not reasonable to load whole table as combobox lookup table during
>> combobox
>> creation like ms doc sample recommends.
>>
>>
>> I have found 2 possibilities:
>>
>> 1. Add some code to combobox events to implement virtual mode. Is this
>> possible ?
>>
>> 2. Create textbox, selection button and use (virtual?) DataGridView to
>> emulate virtual dropdown list. In this case I must create UI in code
>> also.
>>
>> Which way is better ?
>> Where to find more information about this ?
>>
>> Andrus.
>>
>>
>>