Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用通过 BindingSource 和 DataSet 连接到数据库的 DataGridView。我希望当用户完成编辑一行并离开该行时,程序可以将当前行更新到数据库中。我在哪里可以放置我的更新代码?(在哪个班级和哪个活动中?)
您可以添加 OnRowUpdated/OnRowUpdating