使用行从数据库加载datagridview [英] load datagridview from database using row

查看:119
本文介绍了使用行从数据库加载datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个datagridview ..首先,显示书籍数据,其次,显示我要订购的书籍...我想从第一个datagridview调用选定的行并将其显示给第二个datagridview ...如何执行此操作?我谷歌搜索了两天,我没有答案..有人请帮助我..我真的很感激

i have two datagridview.. first, show books data, and second, show books i want to order... i want to call selected row from first datagridview and show it to second datagridview... how to do this ? i googling in for two days, and i don''t have the answer.. somebody please help me.. i really appreciate that

推荐答案

从第一个gridview并将其添加到数据表中.然后将datatabe添加为第二个gridview的数据源.
希望这对您有帮助
检查 http://uniquecoding.wordpress.com/2012/05/12/important- facts-about-datagridview/ [ ^ ]
Get the selected row from the first gridview and add it to a data table. Then add the datatabe as the data source of the second gridview.
Hope this will help u
check http://uniquecoding.wordpress.com/2012/05/12/important-facts-about-datagridview/[^]



您可以使用GridView和DetailsView使用Master/Details表单:
http ://deepak-sharma.net/2012/02/17/creating-master-detail-form-using-gridview-and-detailsview-in-asp-net/?like = 1 [ ^ ]
Hi,
You can use Master/Details form using GridView and DetailsView:
http://deepak-sharma.net/2012/02/17/creating-master-detail-form-using-gridview-and-detailsview-in-asp-net/?like=1[^]


这篇关于使用行从数据库加载datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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