This documentation is archived and is not being maintained.

How to: Add a Business Object as a Data Source (Devices)

Visual Studio 2008

You can add a business object as a data source in your smart device projects. For more information, see Visual Database Tools.

To create a new data source from an object

  1. On the Data menu, click Add New Data Source.

  2. On the Choose a Data Source Type page, select Object.

  3. On the Select an Object you wish to bind to page, select an object already in your application.


    You might need to build the project that contains your object before the object appears in the wizard. You can also add a reference to an object not currently in your application by clicking Add Reference and locating the desired assembly in the Add Reference Dialog Box. The assembly is added to the tree view.

  4. Expand the assembly that contains the object you want to bind to, and then select the object in the tree view.

  5. Click Finish.

    The data source is added to the Data Sources window.

To add a data source to your form

  1. On the Data menu, click Show Data Sources to open the Data Sources window.

  2. Select items in the Data Sources window, and drag them onto a Windows Form to create controls bound to the properties in your object. For more information, see Displaying Data Overview.