简体   繁体   中英

Delphi subrows in grid

I have to make a grid wich displays data divided in 3 subs. At the moment I'm using the SMDB grid, using an other component is no problem, buying components however is not an option.

The result should be something like

lvl1 (display sum of lvl2 items)
-Lvl2 (display sum of lvl3 items)
--Lvl3 (display values like hours etc)
--Lvl3
-Lvl2
--lvl3
--lvl3
-Lvl2

Also the different levels need to be able to collapse/expand.

Thanks in advance

I recommend TVirtualstringtree. it is the best and it can be used easily and applied to which project you want.

You create ChildNodes and if you want Subnode of a child node then you can create another child node . if you have time to examine and like it, I can help you about implemantation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM