我想应用以下功能 [英] i want to apply following functionality

查看:53
本文介绍了我想应用以下功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在数据gridveiw上开发以下功能:



我的窗口应用程序中有一个网格视图,它有各种列它(如地址,f_name,L_name等),我也有一个空的列表框控件。

现在我想要的功能如果我选择网格视图中的第一列它的所有数据比较数据库中的数据表一个接一个。如果在数据库表中找到则可以,如果在数据库中找不到数据库剩余数据,则在列表框中显示。

Hi I want to develop the following functionality on data gridveiw:

I have a grid view in my window application and it have various column in it(like address,f_name,L_name etc), and i have also a empty list box control in it.
Now i want the functionality that if i select the first column in grid view its all data compare one by one with data table in database. If it is find in database table then it is OK and if those not find in data table of database remaining data show in the list box.

推荐答案

我想你需要知道在哪里放置你的代码仪式?



所以你可以用这个事件来建立你的逻辑。



i think u need to know where to put your codes rite?

so you can use this event to build up your logic.

private void dataGridView1_CellClick(object sender,DataGridViewCellEventArgs e){
   // build your logic in this event
}





我希望这会对你有帮助......



I hope this will help you...


这篇关于我想应用以下功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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