Step 1 of 4: Connecting to a New Data Source
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.
- Add the C1TileControl to your form.
- In the project toolbar, from the Data menu select Add New Data Source. The Data Source Configuration Wizard dialog box appears.
- Select Database and then click Next.
- Select Dataset and then click Next.
- Click New Connection.
- In the Add Connection dialog box, click Browse.
- In the Select Microsoft Access Database File dialog box locate the C1NWind.mdb (located by default in the Documents\ComponentOne Samples\Common), click Open, and click OK.
- Click the Next button to continue. A dialog box will appear asking 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.
- Verify the Yes, save the connection as check box is checked and click Next to continue.
- The connection string is saved as C1NWindConnectionString.
- In the Data Source Configuration Wizard select the Tables node.
- Select Finish.