This is a more direct question stemming from an earlier more general question i had earlier now that I've spend more time looking into ADO.NET
I want to take an ADO.NET DataTable and perform the equivalent of a SQL SELECT query with aggregate functions (such as SUM) on some columns, and GROUP BY set for the remaining columns. I then want to take the result and display it in a DataGrid.
I understand that I can create a DataView of a DataTable that contains filter criteria and aggregate functions. But the MSDN page on Expressions say that
"If you use a single table to create an aggregate, there would be no group-by functionality. Instead, all rows would display the same value in the column."
How do I get GROUP BY type functionality out of ADO.NET without writing my Table to a separate database and running a query there? Is there some way to do it by creating or using a second table?