I have a SQL Server 2005 output like this:
Date | Result | Sum
-----|--------|-----
8/26 | 01 | 1549
8/26 | 02 | 7972
8/26 | 03 | 4502
8/27 | 01 | 1897
8/27 | 02 | 1649
8/27 | 03 | 7949
8/28 | 01 | 8542
8/28 | 02 | 5335
8/28 | 03 | 4445
and I want it to show up (in a GridView?) like this:
Result | 8/26 | 8/27 | 8/28
-------|------|------|------
01 | 1549 | 1897 | 8542
02 | 7972 | 1649 | 5335
03 | 4502 | 7949 | 4445
My current attempt is trying to do this via a DataView that comes from a SqlDataSource as well as a new DataSet. I'm not having much luck though. The "Result" values can be dynamic and the dates will be dynamic.
Any tips?