开发者

Binding many-to-many tables in two DataGridView

开发者 https://www.devze.com 2023-02-21 22:23 出处:网络
There are three classic tables from the database Northwind: Products, OrderDetails, Orders There are two DataGridView: DgProducts and DgOrders.

There are three classic tables from the database Northwind:

Products, OrderDetails, Orders

There are two DataGridView: DgProducts and DgOrders.

as deduced from the data in table Orders(DgOrders), which are connected with the data in table Products (DgProducts), using the relationship many-开发者_运维百科to-many.

txn!!!


Have you tried doing an SQL Statement where you can get all the datas you want to display on the two DataGridView?..If so, then store the result of it in a DataAdapter and then to a DataSet. Where you can use the DataSet as a DataSource for your DataGridView.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号