更新数据源!
请问各位:我用datagridview绑定Access,当我修改datagridview数据时,Access数据却没改变,只有我停止调试时打开Access时才发现数据得到更新了,这为何故?谢谢
我的代码是:
Dim adapter As OleDbDataAdapter = New OleDbDataAdapter()
adapter.SelectCommand = New OleDbCommand(SQLString, OleDBConnl)
Dim cb As OleDbCommandBuilder = New OleDbCommandBuilder(adapter)
OleDBConnl.Open()
adapter.Update(DataSet1, "Group1")
请各位帮帮忙!