ComponentOne GridView for ASP.NET WebForms
Task-Based Help / Binding the Grid to a Data Source / Binding the Grid in a Web Application Project
In This Topic
    Binding the Grid in a Web Application Project
    In This Topic

    To bind C1GridView to a data source control in a Web Application project, complete the following steps:

    1. In the project, select Project | Add Existing Item.
    2. Locate and select the Nwind.mdb file, installed by default in the samples folder, and click Add. The Data Source Configuration Wizard appears.
    3. Check the Tables check box and click Finish.
    4. Right-click the C1GridView control and then click Show Smart Tag.
    5. On the C1GridView Tasks menu, click the Choose Data Source drop-down arrow and select <New data source…>. The Data Source Configuration Wizard appears.
    6. Select Access Database and click OK.
    7. Click the Browse button and select the Nwind.mdb that appears under Contents of folder.
    8. Click OK and then Next. The Configure the Select Statement window appears.
      1. Make sure the Specify columns from a table or view option is selected.
      2. In the Name drop-down list, select Products.
      3. In the Columns box, select ProductID, ProductName, QuantityPerUnit, and UnitsInStock or other desired check boxes.
    9. Click Next. The Test Query page appears. Optionally, click Test Query to test your query.
    10. Click Finish to close the wizard and add the data source.
    See Also