Wpf文本框自动完成数据库,ADO.NET [英] Wpf textbox autocomplete with database, ADO.NET

查看:127
本文介绍了Wpf文本框自动完成数据库,ADO.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要设置一个自动完成和自动提示文本框,从SQLite数据库中获取建议数据



我曾尝试过:



没什么,没什么,没什么,什么都没有,没什么,什么都没有,

解决方案

我尝试了其他方式的自动完成,例如

i取了一个文本框,无论我们在文本框中输入什么,如果它匹配数据库中的单词,那么在数据库中为每个关键新字符编写搜索操作然后检索那些从数据库中,然后将它们附加到列表框或列表视图。只有当文本框中输入的数据与数据库数据匹配时,才能看到这个列表视图在文本框下面可见。将获取的数据绑定到列表视图,然后使列表视图可见,否则看不见。

hello guys,
I need to setup a autocomplete and autosuggest textbox that fetch the suggested data from SQLite Database

What I have tried:

nothing,nothing,nothing,nothingnothing,nothingnothing,nothing,

解决方案

i tried this autocomplete in other way like
i have taken a textbox whatever we enter in textbox iam writing searching operation in database for every key new character if it matches the words in database then retrieve those from database and then attach them to listbox or listview .and one thing place this listview under textbox make this visible only when data entered in textbox matches with database data.bind the fetched data to listview and then make listview visible else invisible.


这篇关于Wpf文本框自动完成数据库,ADO.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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