I am currently working in converting an out of date Access application in to a .Net application.
In Access we have a query on a form that contains a list of customers and vehicles where the users can edit the data as required.
I followed the following guide to populate the data grid
http://msdn.microsoft.com/en-us/library/fbk67b6z(v=vs.90).aspx
As you could expect I need to replicate this functionality in .Net, I have been able to populate a DataGridView with the results of a query joining the two tables however I have not been able to work out how to handle the update of the tables through the DataGridView. I understand the as the DataGridView contains the results of a query i need to manually code the UpdateCommand of the DataAdapter and this is where i am stuck.
In Short i need to update two tables though a single data grid view.
Kind Regards
我要做的是添加一个具有唯一键的隐藏列,该唯一键将两个表连接在一起,然后编写两个更新查询(每个表一个),并将隐藏列用作您的参数每个查询中的WHERE
子句。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.