简体   繁体   English

自动完成列表没有显示相同的值,但在VB.Net中的文本框控件的情况下有所不同

[英]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. 但是,一旦我在gridview单元格中显示此内容,它只会显示一次(意味着删除重复值),这意味着它将删除重复的值,以防万一。

Is it Autocomplete restriction from microsoft?, if yes, can i have the link which proves this. 是Microsoft的“自动完成限制”吗?如果可以,我能否提供证明这一点的链接。

can we show the Duplicate value(like VALUE and value ) in textbox Autocomplete? 我们如何在文本框自动完成中显示重复值(例如VALUEvalue )?

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 自动完成desc2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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