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.
In order to complete this walkthrough, you will need the following:
- Access to the Microsoft Access Northwind Database.
- Visual Studio 2005/2008/2010 Application.
To create new web application and specify Self Reference in WebGrid.
- Bind WebGrid
to AccessDataSource.
- Open WebGrid Designer.
- Go to Advanced tab and select RootTable.
- Check the Enable Self Referencing checkbox.
- Set Child Data Member to ReportsTo.
- Set Parent Data Member to EmployeeID.
- Set Expand Column Member to FirstName.
- Click OK to close the window and run the application.