Intersoft Support Center

Display Self-Referencing Data

This walkthrough shows you how to create Self Reference in WebGrid.

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

  • Bind WebGrid to AccessDatasource.
  • Use Self Reference Settings properties in a grid to specify the Self Reference.

 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 application and specify Self Reference in WebGrid.

  1. Bind WebGrid to AccessDataSource.
  2. Open WebGrid Designer.
  3. Go to Advanced tab and select RootTable.
  4. Check the Enable Self Referencing checkbox.
  5. Set Child Data Member to ReportsTo.
  6. Set Parent Data Member to EmployeeID.
  7. Set Expand Column Member to FirstName.

    SelfRefDesigner

  8. Click OK to close the window and run the application.

    SelfRef
Previous Next