C
cxz9
Unregistered / Unconfirmed
GUEST, unregistred user!
请问不写一句代码,能否在DBGridEH中实现统计功能?
我这样设置了,就是不能统计,只显示0
应该怎么设置呀。
不能用TsumList
Columns = <
item
EditButtons = <>
FieldName = 'a1'
Footer.FieldName = 'a1'
Footer.ValueType = fvtSum
Footers = <
item
FieldName = 'a1'
ValueType = fvtSum
end>
end
item
EditButtons = <>
FieldName = 'a2'
Footer.FieldName = 'a2'
Footer.ValueType = fvtSum
Footers = <
item
FieldName = 'a2'
ValueType = fvtSum
end>
end>
end
我这样设置了,就是不能统计,只显示0
应该怎么设置呀。
不能用TsumList
Columns = <
item
EditButtons = <>
FieldName = 'a1'
Footer.FieldName = 'a1'
Footer.ValueType = fvtSum
Footers = <
item
FieldName = 'a1'
ValueType = fvtSum
end>
end
item
EditButtons = <>
FieldName = 'a2'
Footer.FieldName = 'a2'
Footer.ValueType = fvtSum
Footers = <
item
FieldName = 'a2'
ValueType = fvtSum
end>
end>
end