Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TDBGrid status bar for column aggregate

Got a grid with some numeric columns and it's need to implement for each column an aggregate (sum or count) and display it under the corresponding column.

I know that some suites (DevExpress or other) had already implemented "by default". But there is a way to implement that using default controls or JVCL?

like image 704
DreadAngel Avatar asked May 07 '12 13:05

DreadAngel


1 Answers

Since you have mentioned JEDI VCL, try to take a look at the TJvDBGridFooter component. It is the status bar for the TJvDBGrid control.

  • you can modify the displayed text in the OnDisplayText event
  • you can calculate the aggregate fields in the OnCalculate event
  • you can follow the grid column scroll, resize or modify the appearence of the panels

Check the demo projects from JVCL's ..\examples\JvUltimDBGrid folder to see it in action.

like image 196
TLama Avatar answered Oct 11 '22 17:10

TLama