BindToADataTable

This application illustrates the binding of control properties to columns in DataTables.  It also segregates data manipulation code from user interface code.  It remains a single-tier app, but because all data retrieval and storage occurs in a class that is separate from the form that constitutes the user interface, the app shows the beginnings what could be converted to a multi-tier architecture that isolates the user interface from details of the database structure.

Data retrieval and updating is performed with the Data.vb class, whereas frmMain provides the user interface functionality. The TableMappings method of daProducts, the DataAdapter used in the Data.vb class, could be used to remap any column name changes made in the database to the names expected by the UI.  Since the Fill method of the DataAdapter specifies the name of the target table in the DataSet, a change to the name of the table in the backend database could also be buffered.

Since this app uses a strongly typed dataset defined by the dsNw.xsd schema, the schema would also have to be updated to reflect the new names if any such changes were made.
