使用行从数据库加载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[^]