make a dataadapter to update
example:
dim conmntr as string="the provider address"
dim stqlstr as string="the sql statement"
dim dt as new datatable()
Dim dataAdapter As New OleDb.OleDbDataAdapter(sqlStr, connStr)
dataAdapter.Fill(dt)
dataAdapter.Dispose()
remember tick the datagrid属性中有选择的。修改、添加、删除
then
make any changer include insert,delete or update can be use by
dataAdapter.update=dt
(maybe some mistake here because i am not really remember the update command,if u can not handle this please pm me and i will help you to check the correct the code)
datagrid属性中有选择的。修改、添加、删除 都可以实现。不过前提是本窗体连接的你要操作的表