如何更新datagridview中的记录? [英] how to update record in datagridview?
本文介绍了如何更新datagridview中的记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dim table As DataTable = dataSet.Tables("Customers")
' First process deletes.
dataSet.Update(table.Select(Nothing, Nothing, _
DataViewRowState.Deleted))
' Next process updates.
adapter.Update(table.Select(Nothing, Nothing, _
DataViewRowState.ModifiedCurrent))
' Finally, process inserts.
dataAdapater.Update(table.Select(Nothing, Nothing, _
DataViewRowState.Added))
有人可以解释什么是数据集和适配器吗?是数据库数据集吗?
can someone explain what is the dataset and adapter? is it the db dataset?
我需要在使用它之前先声明它吗?
i need to declare it first before using it?
推荐答案
你好,
You might consider reading the following page and this page.
这篇关于如何更新datagridview中的记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文