Spread for WPF allows you to bind a table to a datasource using cell-level binding.
Table binding can be done in two ways:
You can bind a table to a datasource automatically by using the DataSource property of the ITable Interface and its members. Set the AutoGenerateColumns property of the table to true before setting its DataSource property. Otherwise, current table columns will be retained.
Refer to the following example where a company’s finance department maintains a database of its employees' work-related travel information, such as flight ID, flight date, source, and destination. The database can be loaded in a table automatically to display the travel details.
You can bind a table to a datasource and manually set its columns by using the DataField property of the ITableColumn Interface. To manually bind a table, the AutoGenerateColumns property must be set to false.
Considering the example from the previous section, the company can also manually create a table using the existing datasource. This table keeps a record of employees’ unavailability on their flying dates to keep their respective managers informed as shown in the image below.