Skip to content

About

A quick-start project that helps you to display Data Grid in hierarchical structure which can be shown or hidden by clicking the expand or collapse button.

Topics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Hierarchy in Blazor DataGrid Component

Overview

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.

Key Features

  • 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.

Prerequisites

  • Visual Studio 2022 or Visual Studio Code
  • .NET SDK compatible with the project's target framework

How to Run the Project

Visual Studio 2022

  1. Clone or download the repository.
  2. Open the solution file HierarchyGridSample.sln.
  3. Restore all NuGet packages.
  4. Set the Server project as the startup project if required.
  5. Build the solution.
  6. Run the application using Ctrl+F5.

Visual Studio Code

  1. Open the repository folder in Visual Studio Code.
  2. Open the integrated terminal.
  3. Navigate to the Server project directory.
cd Server
dotnet restore
dotnet run
  1. Open the local URL displayed in the terminal after the application starts.

Project Structure

  • Client/Pages/Index.razor — contains the hierarchy grid implementation and parent-child grid configuration.

Support and Feedback

License

This is a Syncfusion sample project provided to demonstrate product usage. Review the Syncfusion license terms before using Syncfusion components in your own applications.

About

A quick-start project that helps you to display Data Grid in hierarchical structure which can be shown or hidden by clicking the expand or collapse button.

Topics

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages