可以在单个datagridview中绑定多个表数据吗? [英] can multiple tables data bind in a single datagridview ?

查看:219
本文介绍了可以在单个datagridview中绑定多个表数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有两个表,我想把数据扔到datagridview,我有多个条件请帮助

There are two tables and i want to throw data to datagridview, i have multiple conditions Please help

推荐答案

你可以做到这一点

use joins



select * from table1 tb1 inner join table2 tb2 on tb1.pk_tb1 = tb2.fk_tb1
ya you can do it
use joins

select *from table1 tb1 inner join table2 tb2 on tb1.pk_tb1=tb2.fk_tb1


Umm,简单!



您可以将这两个表的数据合并到一个集合中(根据您正在谈论的条件,但共享),并将其绑定到您的datagridview。



-KR
Umm, simple!

You can merge those two tables' data into one single collection (based on your conditions you're talking but sharing), and bind it to your datagridview.

-KR


这篇关于可以在单个datagridview中绑定多个表数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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