为什么我在toolstrip里通过datagridview更新数据库无效呢??写个button就可以??
通过修改datagriadview更新数据库
PPrivate Sub 保存修改ToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 保存修改ToolStripMenuItem.Click
Dim objCom As New SqlCommandBuilder(objDataAdapter)
objDataAdapter.Update(objDataSet.Tables("SY_Dic"))
objDataSet.AcceptChanges()
objCom = Nothing
End Sub