ComponentOne DataObjects for .NET
Updating Unbound Tables
DataObjects for .NET (Enterprise Edition) > Updating the Database > Updating SQL-Based and Unbound Tables > Updating Unbound Tables

An unbound table is a table with DataMode = Unbound. In this case the Connection, DbTableName and SelectCommandText properties are empty. An unbound table has its data fetched and updated entirely in code. It can be used to represent a custom non-SQL data source, see Bound, SQL-Based and Unbound Tables.

To allow updating of the data source from an unbound table, write code in the C1TableLogic.BeforeUpdateRow event. In that code, perform the necessary update programmatically, doing whatever actions the custom data source requires, and set the Status event argument to SkipCurrentRow, indicating that the update has been done.

Optionally, if you need to refresh the updated row from the data source (see Changing Data as a Result of Update (Refresh)), retrieve the field values that you need from your data source and assign them to the fields of the Row argument passed to the event.

Note also, that an unbound table can be read-only or it can be modifiable without update functionality, in which case there is no need for any update code.