how update vb.net datagridview using one click after entering all data to it.

  • Thread starter Thread starter chanaka2016
  • Start date Start date
C

chanaka2016

Guest
i use access data base tabel(table name test) bind with datagridview (name : dgvtest) .so i need when i enter data to the

datagidview after entering all data to it when i press save button i need update my access database table.

in form load i add this code

Private Sub test_Load(sender As Object, e As EventArgs) Handles MyBase.Load
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=.\\att2000.mdb;Persist Security Info=False"
con.Open()
ds.Tables.Add(dt)
da = New OleDbDataAdapter("Select * from test", con)
da.Fill(dt)
dgvtest.DataSource = dt.DefaultView
con.Close()

End Sub

pleas. help?

Continue reading...
 
Back
Top