Tree grid
TreeGridControlShow an org chart or any parent-child list as a table users can expand.
Overview
TreeGridControl is a Blazor tree grid: a table whose rows nest under parents, built from a flat list with an Id and a ParentId column. Use it, rather than a tree view, when each node carries columns, as in an org chart; TreatAsParent and LoadChildren fetch a branch only when users open it. Map the hierarchy with IdMapping and ParentIdMapping.
Examples
#4,009 airports, loaded as you open them
Open a continent, a country, then an airport: each level loads its children the first time it opens, and the line under the grid counts the rows loaded so far.
| Place | Type or surface | Airports | Runways | Longest runway (ft) | Elevation (ft) |
|---|---|---|---|---|---|
| Africa | 378 | 448 | 16,076 | ||
| Asia | 1,227 | 1,378 | 16,404 | ||
| Europe | 564 | 777 | 15,092 | ||
| North America | 1,117 | 1,768 | 16,000 | ||
| Oceania | 385 | 501 | 12,999 | ||
| South America | 338 | 385 | 13,780 |
6 of 9,513 rows loaded
#Org chart: who reports to whom
Search a name, title, office or division (try Lisbon or Guide) and press Enter: matches keep every manager above them, vacant posts stay, and the Name column is pinned.
| Name | Title | Office | People below | Grade | Contract | Salary | Rating | Started | Also reports to |
|---|---|---|---|---|---|---|---|---|---|
| Albus Door | Chief Executive Officer | Boston | 1,045 | 9 | Permanent | $455,100 | 2011-08-28 | ||
| Clover Yarrow | Executive Assistant | Boston | 3 | Permanent | $62,300 | 2025-10-26 | |||
| Vacant | Chief of Staff | Boston | 3 | 6 | Permanent | $148,200 | |||
| Hermione Ranger | Chief Operating Officer | Boston | 816 | 8 | Permanent | $278,700 | 2013-07-18 | ||
| Scarlet Underhill | Chief Commercial Officer | Boston | 91 | 8 | Permanent | $239,800 | 2015-04-21 | ||
| Harry Potts | Chief Product Officer | Boston | 19 | 8 | Permanent | $276,500 | 2018-04-06 | ||
| Ronald Wiesel | Chief Technology Officer | Boston | 58 | 8 | Permanent | $240,300 | 2019-07-18 | ||
| Buttercup Plum | Chief Financial Officer | Boston | 26 | 8 | Permanent | $251,200 | 2021-03-03 | ||
| Wren Buttonwood | Chief People Officer | Boston | 19 | 8 | Permanent | $244,400 | 2026-01-08 | ||
| Saffron Wigglesworth | General Counsel | Boston | 5 | 8 | Permanent | $261,100 | 2022-05-02 |
1,084 of 1,084 posts shown; 38 vacant, 25 on leave.
Documentation
TreeGridControl renders its own table: it is not a GridControl wrapper and forwards no parameter. It shares
GridControl's best-fit engine (ColumnAutoFit), sort pipeline, exporter and toolbar item model, and takes its
events as direct parameters rather than an EventsRef object. One row is selected at a time. The 97 parameters are
grouped by purpose: 74 in the tables below, the 23 EventCallbacks under Events.