Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

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

$
0
0



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?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>