ComponentOne Olap for WinForms
OLAP for WinForms Task-Based Help / Binding C1OlapPage or C1OlapPanel to a Data Source
In This Topic
    Binding C1OlapPage or C1OlapPanel to a Data Source
    In This Topic

    You can easily bind C1OlapPage or C1OlapPanel to a data source using the C1OlapPage or C1OlapPanel Tasks menu, or you can use the C1OlapPage.DataSource or C1OlapPanel.DataSource property in the Visual Studio Properties window.

    Using the Tasks Menu

    To bind the controls using the Tasks menu, follow these steps:

    1. Select the C1OlapPage or C1OlapPanel control on the form.
    2. Click the C1OlapPage or C1OlapPanel smart tag to open the C1OlapPage Tasks or C1OlapPanel Tasks menu.
    3. Click the drop-down arrow next to Choose Data Source and click Add Project Data Source. The Data Source Configuration Wizard dialog box opens.
    4. Select Database and click Next.
    5. Click New Connection, browse to find your database, and click OK.
    6. In the Choose Your Data Connection window, click Next.
    7. Leave the Yes, save the connection as check box checked and click Next.
    8. Select the tables and views to include in your dataset and click Finish.

    Using the Properties Window

    To bind the controls through the Visual Studio Properties Window, follow these steps:

    1. In the Visual Studio View menu, select Properties Window.
    2. In the Properties Window, click the drop-down arrow next to the DataSource property and click Add Project Data Source. The Data Source Configuration Wizard dialog box opens.
    3. Select Database and click Next.
    4. Click New Connection, browse to find your database, and click OK.
    5. In the Choose Your Data Connection window, click Next.
    6. Leave the Yes, save the connection as check box checked and click Next.
    7. Select the tables and views to include in your dataset and click Finish.
    8. In the DataSource property drop-down dist in the Properties window, select the cable to bind to.