try { oledbCmdBuilder = new OleDbCommandBuilder(oledbAdapter); changes = ds.GetChanges(); if (changes == null) { MessageBox.Show("Please edit something and click update button"); return; } if (changes != null) { oledbAdapter.Update(ds.Tables[0]); } ds.AcceptChanges(); MessageBox.Show("Record added successfully"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)