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