简体   繁体   中英

AutoComplete list is not showing same value but different in case for textbox control in VB.Net

I am using below code to show the list in AutoComplete.

Dim gridTextBox As TextBox = DirectCast(e.Control, TextBox)
gridTextBox.CharacterCasing = CharacterCasing.Normal
gridTextBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend
gridTextBox.AutoCompleteSource = AutoCompleteSource.CustomSource
gridTextBox.AutoCompleteCustomSource = mAutocompleteLookupDescription.AutoCompleteSource

and the following line of code :

gridTextBox.AutoCompleteCustomSource = mAutocompleteLookupDescription.AutoCompleteSource

is giving me the correct list like

TEST1
test1
VALUE
value

but as soon as i am showing this in my gridview cell it's showing only once(means removing the duplicate value), means it's removing the duplicate value which different in case.

Is it Autocomplete restriction from microsoft?, if yes, can i have the link which proves this.

can we show the Duplicate value(like VALUE and value ) in textbox Autocomplete?

Thanks in advance..

If there are duplicate entries in the maintained custom source of Autocomplete, automatic completion behaves unpredictably. 自动完成行为

helpful link for above text image Autocomplete desc1

Autocomplete desc2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM