This sample demonstrates how to display hierarchical data using the Syncfusion Blazor DataGrid. The implementation presents related records in a parent-child grid structure where child grids can be displayed or hidden by using the expand and collapse functionality. This approach helps organize related datasets and allows users to navigate hierarchical information without leaving the current grid view.
- Displays data in a hierarchical grid structure.
- Shows child records within expandable parent rows.
- Allows users to expand and collapse hierarchy rows on demand.
- Demonstrates parent-child data relationships using nested DataGrid layouts.
- Organizes related information without requiring page navigation.
- Uses the Syncfusion Blazor DataGrid component for hierarchy visualization.
- Provides a reference implementation for displaying relational data in a hierarchical format.
- Visual Studio 2022 or Visual Studio Code
- .NET SDK compatible with the project's target framework
Visual Studio 2022
- Clone or download the repository.
- Open the solution file
HierarchyGridSample.sln. - Restore all NuGet packages.
- Set the
Serverproject as the startup project if required. - Build the solution.
- Run the application using
Ctrl+F5.
Visual Studio Code
- Open the repository folder in Visual Studio Code.
- Open the integrated terminal.
- Navigate to the Server project directory.
cd Server
dotnet restore
dotnet run- Open the local URL displayed in the terminal after the application starts.
Client/Pages/Index.razor— contains the hierarchy grid implementation and parent-child grid configuration.
- For general product questions, visit the Syncfusion Community Forum or Syncfusion Support.
- To report an issue specific to this sample, open a GitHub issue in this repository.
- For feature documentation, see the Syncfusion Blazor DataGrid Hierarchy Grid documentation: https://help.syncfusion.com/grid-sdk/blazor/data-grid/detail-template
This is a Syncfusion sample project provided to demonstrate product usage. Review the Syncfusion license terms before using Syncfusion components in your own applications.