Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 22:30

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Total rows at Footer
PostPosted: 25 Oct 2021, 10:52 
Offline

Joined: 25 Oct 2021, 10:49
Posts: 18
What property has to be active for the total number of rows to appear in the Footer?

Thanks in advance


Top
 Profile  
 
 Post subject: Re: Total rows at Footer
PostPosted: 29 Oct 2021, 22:59 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Set DBGridEh.SumList.Active to True

Quote:
TDBGridEh can display special row (footer) or rows at bottom part. Use FooterRowCount property to specify the number of footer rows in the grid. Use Footer or Footers property of TColumnEh object to specify information which needs to show in footer cells. Footers property is useful when you have more than one footer rows. Footers are a collection of TColumnFooterEh objects. Information from i-th element of collection will be shown in i-th row of footer. In footer cell, it is possible to show: Sum value for the specific field, records count, the value of a specific field or static text. Use property Footer.ValueType or Footers[i].ValueType to specify which type of value will be shown in the footer cell. If ValueType = fvtStaticText, then you also need to set Value property to specify text which will be shown. If ValueType = fvtFieldValue, then you need to set property FieldName to specify the field, value of which will be shown. To force grid to calculate total values you need to activate SumList (Set DBGridEh.SumList.Active to True value).
Set TColumnFooterEh.ValueType to fvtSum to show sum value of the column field in the footer cell, you can also specify Column.Footer.FieldName to calculate total value of the other field. Set ValueType to fvtCount to force grid to display count of records in the footer cell.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group