Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Real Excel-style AutoComplete in a WinGrid cell?
posted

Hi!

I'm using an ultraComboEditor as EditorCompent for a WinGrid column in the IntializeLayout event.

DataSource is a .NET DataSet, AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Append

AutoSuggestFilterMode = Infragistics.Win.AutoSuggestFilterMode.StartsWith

ultraComboEditor1.DropDownStyle = Infragistics.Win.DropDownStyle.DropDown

I use the ValueMember property, not the DisplayMember property.


This column in the DataSet has at the beginning only a few values, most of them are empty strings ("").

Behavior:

The list contains for every empty string a particular item.

The list will be updated with every new string, even it's allways the same. E.g. editing the cells with "Tom" for 3 times, results in 3 "Tom"-strings (items) in the list.

AutoComplete only works correctly after a second - and different from the first - string was inserted. That means for example that the AutoComplete-function for "Tom" not works till "Eve" is also in the list. After that AutoComplete works for both strings correctly. But not if only one new string is in the list.


And now my questions:

First of all: Is there any other simple way to implement a real Excel-style AutoComplete? Im using Version 12.1

Why are all empty strings in the list and why are the same (new) strings repeatedly in the list? Is there a possibility to avoid duplicates?

What's the reason of the funny manner described above of the not really correct working AutoComplete?


Thank you very much and kind regards.

Tom