Requirement: How to display a grid with heirarchical grouping

The app I am working on is showing data which is the product of a parent-child relationship. I would like to show the data in a grid layout where the parent data is only displayed once and then all the related child data is displayed beneath the parent data.

The parent data needs to be differentiated from the child data by color or indentation or something like that.

If the parent rows can collapse their child rows then that would be a bonus.



Solutions:

Submit a new solution to this problem >
Solution: How to display a grid with heirarchical grouping using TList
Solution: How to display a grid with heirarchical grouping using TList The TList component allows the presentation ( and optionally editing ) of data in a combination Tree / Grid style. Data can be presented in either a multi-column Tree, or with parent branches of a tree holding child items in grids. Full support for colors, fonts, and of course expanding / collapsing branches
(Visual Basic (VB), C#, C++, Delphi, VBA, JavaScript, VBScript\Windows)