Dev Direct Solution Center

For more information and to buy this product...

Solution: How to display a grid with heirarchical grouping using TList

  For a copy of the sample project please click here to download and install the product evaluation.

Introduction

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

Detail

A user asks
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.

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

Sample code forthcoming.

See Screenshots below:



Visit Bennet-Tec Information Systems, Inc. for more information and more samples.