You have two basic options. The easiest is to have the database return the data alongside the initial data. You then get two datatables, one for individual data and one for aggregates. If you need something more dynamic on the client then you need to create a secondary table and set the expression property of the columns to point at the first tables rows.
See these links:
http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression(vs.71).aspx
and
http://www.ondotnet.com/pub/a/dotnet...pressions.html
--
Joe (
Microsoft MVP - XML)