I have some data that must be presented in tabular form with multiple sections. In particular, Each section of data is broken up (with it's own headers) by day. This is basically a one-off single page deal, and won't really be maintained, so I don't want to put a lot of effort into architecture.
I have two tables. HEADERS and ITEMS.
HEADERS have a format of:
date(datetime), type(tinyint), firstline(varchar), secondline(varchar)
ITEMS has a format of
id(int), date(datetime), type(tinyint), name(varchar), value1(int),
value2(int), value3(int)
I need the data to look similar to this (first and secondline are data populated, third line is static text, item lines are data populated):
1/1/2009
--------------------------------------------------------------------------
| [First line] |
--------------------------------------------------------------------------
| [Second line] |
--------------------------------------------------------------------------
| Date | Name | Value 1 | Value 2 | Value 3 |
==========================================================================
| [Date]| [Name] | [Value 1] | [Value 2] | [Value 3] |
--------------------------------------------------------------------------
| [Date]| [Name] | [Value 1] | [Value 2] | [Value 3] |
--------------------------------------------------------------------------
1/2/2009
--------------------------------------------------------------------------
| [First line] |
--------------------------------------------------------------------------
| [Second line] |
--------------------------------------------------------------------------
| Date | Name | Value 1 | Value 2 | Value 3 |
==========================================================================
| [Date]| [Name] | [Value 1] | [Value 2] | [Value 3] |
--------------------------------------------------------------------------
| [Date]| [Name] | [Value 1] | [Value 2] | [Value 3] |
--------------------------------------------------------------------------
This will repeat for all days currently in the database, each day having it's own table with it's own headers. They will also be filtered by type. the page will only show headers and items of the type specified. Type is an tinyint.
So the question is, What is the best ASP.NET elements to use? DataList? GridView? And how do I include the data from two tables in a header/item format?
EDIT: Sorry, forgot to mention that this has to work on Windows 2000/IIS5, so i'm stuck with ASP.NET 2.0 and can't use 3.0 or 3.5 features.