如何在checkedListBox中实现搜索引擎 [英] How to implement search engine in checkedListBox
本文介绍了如何在checkedListBox中实现搜索引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我是C#Windows应用程序的新手,您可以帮我解决问题吗?
我想在Checkedboxlist中实现搜索条件,当我在文本框中输入任何名称或电子邮件ID并单击搜索"按钮时,它应提供相关名称或emailid的o/p
数据来自数据库
Hello
I''m new in C# windows application, could you help me to solve my problem?
I want to implement search condition in Checkedboxlist, when i enter any name or email id in textbox and clicking on search button its should give the o/p of that related names or emailid
data come from database
推荐答案
在复选框selectrd事件中编写sql查询,如
In the checkbox selectrd event write the sql query like
select * from <table name=""> where <column name=""> = abc</column></table>
commandobject.parameters.AddWithValue("abc",checboklist.selectedindex.ToString());
这篇关于如何在checkedListBox中实现搜索引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文