The .Net data model implies that a control bound to a database using
DbDataAdapter and
DataTable objects does not immediately post changes after they have been made. Instead, changes are accumulated in the
DataTable and you have to manually call a specific method to update the database. The XtraGrid behaves in a similar way: changes you made while editing data (adding, deleting or modifying records) are saved in a corresponding
DataTable. To post these changes to the database, you should call the data adapter's
System.Data.Common.DbDataAdapter.Update method.
Before calling this method, make sure that the grid control has saved all the changes made to the currently focused row (the end-user could enter new data but forget to update the row). For this purpose, you need to call the