AutoCompleteCustomSource仅获取不同的值 [英] AutoCompleteCustomSource Getting only disticnt value

查看:113
本文介绍了AutoCompleteCustomSource仅获取不同的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有AutoCompleteCustomSource并将其设置为EditingShowingControl Event中数据网格视图的文本文件的数据源.问题是这里的项目显示为不同.
即使重复,我也需要显示所有项目.

Hi I have AutoCompleteCustomSource and set it as a data source to text filed of data grid view in EditingShowingControl Event.Problem is that here items are viewing as distinct.
I needed to show all items even if it is repeated

推荐答案

我看不到在AutoCompleteCustomSource中显示重复的项目有什么帮助.用户仅使用它来输入仅部分键入的作品.如果源中的两个单词相同,则将输入第一个单词,而另一个则完全多余.

我认为您无法仅仅因为它没有道理就得到了您想要的行为.

如果您仍然认为这样做有意义,请说明这种行为的目的是什么.

—SA
I don''t see how showing repeated items in AutoCompleteCustomSource can help. It''s only used by a user to enter a work typed only partially. If two words in the source are identical, the first one would be entered, another one is totally redundant.

I think you cannot get the behavior you think you want simply because it would not makes sense.

If you still think it makes sense, please explain what would be the purpose if such behavior.

—SA


这篇关于AutoCompleteCustomSource仅获取不同的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆