如何制作任何密钥传递搜索按钮并显示所有信息一次在C#中的datagridview中显示匹配值 [英] how to make any key pass search button and show all information one time show matching value in datagridview in C#

查看:55
本文介绍了如何制作任何密钥传递搜索按钮并显示所有信息一次在C#中的datagridview中显示匹配值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助任何人。我遇到了大问题。

Help any one . I face big problem .

推荐答案

在footertemplate或headertemplate中,您可以放置​​一个文本框,并为该文本框绑定OnKeypress事件上的方法。在该方法中,您可以使用来自文本框的键来放置所有用于搜索数据库的代码。
In "footertemplate" or "headertemplate" you can place a textbox and for that textbox bind a method on "OnKeypress" Event. In that method you can place all your code for searching database with key which is comes from textbox.


这篇关于如何制作任何密钥传递搜索按钮并显示所有信息一次在C#中的datagridview中显示匹配值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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