How to update database by using datagridview (vb.net)
问题 Here is my code, but its the other way around, it commits changes to the datagridview when the database is updated. Imports System Imports System.Data Imports System.Data.OleDb Imports System.Windows.Forms Public Class Form1 Inherits System.Windows.Forms.Form Private bindingSource1 As New BindingSource() Private dataAdapter As New OleDbDataAdapter() <STAThreadAttribute()> _ Public Shared Sub Main() Application.Run(New Form1()) End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As