Skip to end of metadata
Go to start of metadata

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.

Prerequisite

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 application 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_Data and select Add Existing Item.
  9. Browse and add NorthWind.mdb in C:\Program Files (x86)\Intersoft Solutions\WebUI Studio for ASP.NET\Data (Default installation folder).
  10. Click the SmartTag on the upper right of the WebGrid.
  11. In Choose Data Source field, choose <New data source...>.
  12. In Data Source Configuration Wizard, choose ISDataSource and click OK.
  13. Select the Schema Type that you want to use and click Next.
  14. Add two or more tables required and click Finish.
  15. Then, choose Retrieve Hierarchical Structure action in Connected to Data Source Control Wizard and click OK.
  16. Run the project and the WebGrid should look like following.