DataGrid -- With Template & Total Line
http://www.extremeexperts.com/Net/Articles/AddingControlstoFooter.aspx
http://localhost/JaneWeb/FFA/CDE/admin/CDEReportBySchool.aspx?type=fall
The key point is to overwrite ItemCreated event handler, and then design a proper footer with computed data in it.