sSql := Format(sumSel, [conditionStr]);
sumDs := GlobalService.OpenSQL(sSql);
if sumDs = nil then
Exit;
if sumDs.RecordCount = 1 then
begin
try
cxgrdMainDBBandedTableView1.DataController.Summary.FooterSummaryValues[0]:= '汇总';
cxgrdMainDBBandedTableView1.DataController.Summary.FooterSummaryValues[1]:= sumDs .FieldByName('XJYFS').asstring;
except
end;
end;
cxgrid 使用SQL数据赋值footer合计
最新推荐文章于 2023-11-23 16:26:06 发布