【问题标题】:DataGridView : How to update a record to database after editDataGridView:编辑后如何将记录更新到数据库
【发布时间】:2013-04-23 20:54:27
【问题描述】:

我正在使用通过 BindingSource 和 DataSet 连接到数据库的 DataGridView。 我希望当用户完成编辑一行并离开该行时,程序可以将当前行更新到数据库中。 我在哪里可以放置我的更新代码? (在哪个班级和哪个活动中?)

【问题讨论】:

    标签: datagridview bindingsource


    【解决方案1】:

    您可以添加 OnRowUpdated/OnRowUpdating

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-11
      • 1970-01-01
      • 2014-01-18
      • 2015-05-28
      相关资源
      最近更新 更多