Support for hierarchical grids is included in the Objective Grid for Microsoft .NET GridControl class. You can establish a one-to-many parent-child relationship between grids. This architecture enables you to expand and collapse each parent row, so that you can view or hide the row's associated children in a tree-like structure. You enable hierarchical grid by setting GridControl's HierarchicalGrid property to true.
Figure 29 shows a grid control with hierarchical relationships. When hierarchical display is enabled, each row can serve as parent to a child grid that is a separate instance of GridControl or a GridControl-derived class. From the parent GridControl, you can retrieve any child GridControl and access its API directly. Moreover, grids can be nested to any depth.
Hierarchical grid features include:
Grid parents and children that can be instances of different types.
Child grids that can be instances of different types.
Virtual child grid initialization that allows custom initialization for each child grid.
A plus-minus expander that can be selectively shown on a per row basis.
Seamless current cell movement between parent and child.
ADO.NET data binding that allows navigation of hierarchical relationships within data sources.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.