datagridview1.columns [x]绑定到另一个表 [英] datagridview1.columns[x] bind to another table

查看:80
本文介绍了datagridview1.columns [x]绑定到另一个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我有combobox1和datagridview1。

combobox1绑定到表格组员。



当用户从combobx1中选择项目时datagridview1显示所选项目的ID。

现在我想datagridview1.columns [10]绑定到另一个表并显示名称,其中id = combobox1选择项目ID。



例如:


组合框1中的
:用户选择朋友,其中id = 5

当点击按钮datagridview.columns [10 ] show 5



现在我想datagridview1.columns [10]绑定到另一个表并显示名称,其中id = 5而不是5.

hi I have combobox1 and datagridview1.
combobox1 binds to table groupperson.

when user select item from combobx1 datagridview1 show id of selected item.
now I want datagridview1.columns[10] binds to another table and show name where id = combobox1 selected item id.

for example :

in combobox1 : user select friend where id = 5
when click button datagridview.columns[10] show 5

now I want datagridview1.columns[10] binds to another table and show name where id = 5 instead 5.

推荐答案

亲爱的,明白你的问题。你在做什么,你需要做什么?这将有助于我们准确回答您的问题。
Dear,Make your question clear.What are you doing and what you need to do?? That will help us to answer your question accurately.


这篇关于datagridview1.columns [x]绑定到另一个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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