WebGrid is capable to bind Self-Reference with hierarchical data.
In this topic, you will learn how to display Self-Referencing Hierarchical data.
To display Self-Referencing Hierarchical data
- Bind WebGrid to Hierarchical ISDataSource. (Bind Employees, Orders, and Orders Details table)
- Open WebGrid.NET Designer and go to Advanced tab.
- Select RootTable and Scroll down to Self Referencing section.
- Select Enable Self Referencing. Set Child Data Member to ReportsTo, Parent Data Member to EmployeeID and Expand Column Member to FirstName.
- Run the project.
Other Resources
Walkthrough Topics
How-to Topics