Intersoft Support Center

Bind to ISDataSource

This walkthrough shows you how to create and bind WebGrid to an ISDataSource control.

During this walkthrough, you will learn how to do the following:

  • Use ISDataSource.
  • Use SmartTag to set DataSource.
  • Use DataSourceConfigurationWizard to set the Database and table.

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • Access to the Microsoft Access Northwind database.
  • Visual Studio 2005/2008/2010 Application.

 Step-By-Step Instructions

To create new web Website and bind WebGrid to ISDataSource

  1. Launch Visual Studio.NET 2008.
  2. Click on File menu, then select New and click Web Site.
  3. Select ASP.NET Web Site in the Template box and set Location to HTTP.
  4. Named the Web Site and click OK.
  5. Right-click on Project's name and select Add New Item.
  6. Select Intersoft AppForm in the My Templates box and named it as Walkthrough.aspx.
  7. Drag WebGrid instance from ToolBar to WebForm.
  8. In the Solution Explorer, right-click on App_Code and select Add New Item.
  9. Choose DataSet and named it as dsNorthwind.xsd.
  10. Open Server Explorer and expand Northwind tables. Add the entire tables to create the DataSet.
  11. Click the SmartTag on the upper right of the WebGrid.
  12. In Choose Data Source field, choose <New data source...>.



  13. In Data Source Configuration Wizard, choose ISDataSource and click OK.



  14. Select the Schema Type that you want to use and click Next.



  15. Add two or more tables required and click Finish.



  16. Then, choose Retrieve Hierarchical Structure action in Connected to Data Source Control Wizard and click OK.


  17. Run the project and the WebGrid should look like following.



Previous Next