Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 20 Apr 2024, 13:46

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 19 Jul 2017, 06:19 
Offline

Joined: 21 Nov 2012, 01:56
Posts: 119
Hi Support Team,

Pls refer to my screenshot below.

Thanks in advance.


Attachments:
2 (1).jpg
2 (1).jpg [ 99.74 KiB | Viewed 1549 times ]
Top
 Profile  
 
PostPosted: 17 Aug 2017, 02:51 
Offline

Joined: 21 Nov 2012, 01:56
Posts: 119
Maybe I should try this later.


Attachments:
1.jpg
1.jpg [ 124.97 KiB | Viewed 1473 times ]
Top
 Profile  
 
PostPosted: 08 Sep 2017, 09:03 
Offline

Joined: 08 May 2014, 18:06
Posts: 663
Hello

You also can use calculated fields.

Create Calculated field CalcField

Code:
procedure TForm1.MemTableEh1CalcFields(DataSet: TDataSet);
begin
  MemTableEh1.FieldByName('CalcField').AsBCD :=
    MemTableEh1.FieldByName('Population').AsFloat /
    MemTableEh1.FieldByName('Area').AsFloat;
end;


and adjust its summation in the footer of the column.

Code:
      item
        CellButtons = <>
        DynProps = <>
        EditButtons = <>
        FieldName = 'Population'
        Footer.FieldName = 'CalcField'
        Footer.ValueType = fvtSum
        Footers = <>
      end

_________________
Best regards
EhLib Support Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 19 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