使用DataGridView进行数据库更新

问题描述:

我一直在尝试使用Windows窗体中的DataGridView更新SQL Server 2008中的数据库。但是我没有成功,因为它在代码行cmd.ExecuteNonQuery上给出了映射不存在的错误

任何人都可以帮助我,我会非常感激。

I have been trying to update the database in SQL Server 2008 using DataGridView in Windows form. But I have been unsuccessful to do so, as it gives a error "mapping does not exists" on the code line "cmd.ExecuteNonQuery"
Can any one help me through, I will be really thankful.

http://www.c-sharpcorner.com/UploadFile/rohatash/insert-edit-update-and-delete-data-with-datagridview-in-wi/



[ ^ ]

http://www.dotnetcurry.com/ShowArticle.aspx?ID=132 [ ^ ]



此链接可以帮助您。
http://www.c-sharpcorner.com/UploadFile/rohatash/insert-edit-update-and-delete-data-with-datagridview-in-wi/

[^]
http://www.dotnetcurry.com/ShowArticle.aspx?ID=132[^]

This link help you.