Example of Hierarchy Grid in Blazor DataGrid Component

DataGrid / Relational Binding / Hierarchy Grid

This sample shows how to use the details template feature of DataGrid to display parent-child relation data in a hierarchy structure.

The Hierarchy DataGrid is used to display table data in hierarchical structure that can be expanded or collapsed by clicking the expand or collapse button. It can be achieved by defining DetailTemplate within GridTemplates.

In this demo, three level hierarchy is demonstrated with hierarchical structure Employee -> Orders -> Customers.

More information about the Details Template feature can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE