我们可以在DataGridView中指示一条记录吗... [英] can we indicate a record in DataGridView...

查看:58
本文介绍了我们可以在DataGridView中指示一条记录吗...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
特定搜索的结果将显示在dataGridView中.
现在,我们在textBox中搜索一项,以便它指示dataGridView中的一条记录并显示它.
有可能吗?怎么了?
谢谢

Hi all
results of particular search will show in a dataGridView.
now, we search an item in a textBox so that it indicate one record in the dataGridView and show it.
is it possible?how?
Thanks

推荐答案

是的,有可能.
您可以在数据源中搜索网格,找到在文本框中输入的文本,然后突出显示找到该搜索的第一行.

鉴于您具有可以帮助您识别源代码和网格中的行的键,因此应该很容易做到.
Yes it is possible.
You can search through the datasource for the grid, find the text that was entered in the textbox, and then highlight the first row where this search is found.

Given you have keys that can help you identify rows in your source and grid, it should be fairly easy to do.


这篇关于我们可以在DataGridView中指示一条记录吗...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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