ComponentOne TileControl for WinForms
Data Binding Overview / Databinding Tutorial - Creating a Complex Databound TileControl / Step 1 of 8: Creating a Data Source for C1TileControl
In This Topic
    Step 1 of 8: Creating a Data Source for C1TileControl
    In This Topic

    In this step you will create a data source that you can later bind the C1TileControl to using the TileControl’s databinding properties.

    Connect to a new data source

    1. Add the C1TileControl to your form.
    2. In the project toolbar, from the Data menu select Add New Data Source. The Data Source Configuration Wizard dialog box appears.
    3. Select Database and then click Next.
    4. Select Dataset and then click Next.
    5. Click New Connection.
    6. In the Add Connection dialog box, click Browse.
    7. In the Select Microsoft Access Database File dialog box locate the C1NWind.mdb (located by default in the C:\Users\UserName\Documents\ComponentOne Samples\Common), click Open, and click OK.
    8. Click the Next button to continue. A dialog box will appear aslking if you would like to add the data file to your project and modify the connection string. Since it is not necessary to copy the database to your project, click No.
    9. Verify the Yes, save the connection as check box is checked and click Next to continue.
    10. The connection string is saved as C1NWindConnectionString.
    11. In the Data Source Configuration Wizard select the Tables node.
    12. dSelect Finish.