hi, my program is to call data from D.Base and fill grid by this data, i want to make some calculation on this data like the addition or the sum of the numbers in certain column or row and which the biggest or smallest number in column or row .
thx.

Your grid is a TDBGrid or a TStringGrid?
Your problem is to calculate those totals or to add them to the Grid?

Anyhow, those kind of things will need you to code them, and, in a DBGrid you won't be able to "add a last line" as each line represent a record in your table.