Intersoft Support Center

Bind to Server DataSource Service

This walkthrough shows you how to configure updatable WebGrid bound to ServerDataSource.

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

  • Use ISDataSource
  • Use WebGrid designer to define BindingOperationMode property in WebGrid.

 Prerequisites

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

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

 Step-By-Step Instructions

To configure client binding using ServerDataSource mode

  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 and ISDataSource instances from ToolBar into WebForm.
  8. In the Solution Explorer, right-click on App_Code and select Add New Item.
  9. Choose DataSet and named it as dsNorthwind_ReadOnly.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 ISDataSource and click Configure Data Source...



  12. Specifies the Schema Type and Schema Name that represent ISDataSource, and then click Next.



  13. Add TableName that represents ISDataSource, and choose Select, Update, Insert, and Delete for every table, and then press Finish.



  14. Set Data Source ID property from WebGrid’s SmartTag.



  15. Select a table view that will display as root table in WebGrid. And then select an action Retrieve Structure or if you use Hierarchical data structure, you can choose Retrieve Hierarchical Structure.



  16. Choose WebGrid Designer link on WebGrid’s SmartTag to open WebGrid Designer.
  17. Choose Data Source (Advance) link on Quick Start and choose Client-side Binding (Advance) for data binding operation.
  18. Save all the pages and run the project.
Previous Next