如何通过DBGridEh设置固定列用于统计记录数?
DBGridEh1.FooterRowCount:=1;DBGridEh1.SumList.Active:=True;
DBGridEh1.FootColor:=clInfoBk;
DBGridEh1.Columns[0].Footer.ValueType := fvtStaticText;
DBGridEh1.Columns[0].Footer.Value := '总计:';
DBGridEh1.Columns[1].Footer.ValueType := fvtCount; //fvtSum
另:在DataSource的OnDataChange中,DBGridEh1.SumList.RecalcAll;
本文地址:http://www.45fan.com/a/question/67605.html