ComponentOne List for WinForms
In This Topic
    Modifying the DataSource
    In This Topic

    To change the location of the C1NWind.mdb reference, you can edit the DataSource property of C1List.

    1. Click the C1List smart tag to open the C1List Tasks menu, select Add Project Data Source from the Choose Data Source drop-down box to open the Data Source Configuration Wizard.
    2. The Data Source Configuration Wizard appears. Select Database on the Choose a Data Source Type page, and click Next.
    3. Click the New Connection button to create a new connection or choose one from the drop-down list.
    4. The Add Connection dialog window appears. Click Browse to specify the location of the data and enter the correct login information. Click the Test Connection button to make sure that you have successfully connected to the database or server and click OK. The new string appears in the on the Choose Your Data Connection page.
    5. 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. Click No.
    6. Save the connection string in the application configuration file by checking the Yes, save the connection as box and entering a name. Click Next to continue.
    7. On the Choose Your Database Objects page, select the tables and fields that you would like in your dataset. Enter a name for your DataSet in the DataSet name box and click Finish to exit the wizard.

    A DataSet and connection string are added to your project. Additionally, Visual Studio automatically creates the code to fill the DataSet.