码迷,mamicode.com
首页 > 数据库 > 详细

unigui unidbgrid显示列的合计值

时间:2015-04-13 00:17:52      阅读:496      评论:0      收藏:0      [点我收藏+]

标签:

procedure TfrmClient.UniDBGrid1ColumnSummaryResult(Column: TUniDBGridColumn;
GroupFieldValue: Variant; Attribs: TUniCellAttribs; var Result: string);
var
f: Currency;
begin
inherited;
if SameText(Column.FieldName,‘beginBalance‘) then
begin
f:=0;
ClientDataSet1.First;
while not ClientDataSet1.Eof do
begin
f:= f + Column.Field.Value;
ClientDataSet1.Next;
end;
Result :=formatCurr(‘¥0.00‘,f);
Attribs.font.Style:= [fsBold];
Attribs.Font.Color:= clNavy;
end;
end;

unigui unidbgrid显示列的合计值

标签:

原文地址:http://www.cnblogs.com/hnxxcxg/p/4420962.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!