问题描述
嗨
我想在数据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.
推荐答案
private void dataGridView1_CellClick(object sender,DataGridViewCellEventArgs e){
// build your logic in this event
}
我希望这会对你有帮助......
I hope this will help you...
这篇关于我想应用以下功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!