简体   繁体   中英

Add a footer to a TDBGrid

I want to create a TDBGrid descendant with a footer to summarize columns. Can you point me to the steps to create a footer bar and populate it by the columns?. Maybe there is some open-source grid with footers where I can look its code?.

Thank you.

The JEDI project's visual component library contains a highly-customizable DB grid, TJvDBGrid and there is an add-in component for this, TJvDBGridFooter which I expect is very close to what you are looking for.

There is outline documentation for the TJvDBGridFooter here: https://wiki.delphi-jedi.org/wiki/Category:TJvDBGridFooter which is pretty minimal but should suffice to indicate whether it is likely to meet, or be adaptable to, your needs.

You'll find the source of the TJvDBGrid and TJvDBGridFooter components in the JvDBGrid.Pas and JvDBGridFooter.Pas files, respectively, in the Run folder of the standard JVCL install.

Btw, TJvDBGrid is a descendant of the VCL's TCustomDBGrid.

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