Configuring the ObjectDataSource
To use the ObjectDataSource a DataSet needs to be configured. Once a DataSet has been configured the ObjectDataSource control in the Toolbox is clicked and dragged onto the Design Canvas.

Fig. 1. Standard Microsoft Visual Studio 2010 Toolbox

Fig. 2. ObjectDataSource Control
Click on Configure Data Source
Configure Data Source Wizard

Fig.3. Choose a Business Object screen
Feature | What it is |
---|---|
Choose your business object | Select the required DataSet from the drop-down list to access the K2 SmartObject properties and methods. |
Show only data components | If selected the drop-down list on this screen lists only those objects that have the DataObject attribute |
The name of the TableAdapter is followed by the name of the first SmartObject in the connection string

Fig.4. Define Data Methods screen
Feature | What it is |
---|---|
Choose a method | Select the required method from the drop-down list for each of the SQL statement tabs. |