i have one dbgrid :
co1|col2
a | b
c | d
e | f
g | h
-------------
i | j
a=100
b=100
c=300
d= b+c = 400
e=600
f=d+e=1000
g=200
h=f+g=1200
i=sum(col1)=1200
j=h=1200
===================
i fill col1 from DB
how to automate fill col2
============
sorry for my bad english