views:

75

answers:

3
+1  Q: 

Grouped Gridview

I am in the process of transitioning an Access DB to a Web application. The Access DB currently produces reports using grouping e.g.:

Country
-------------------------------------------------------
County
-------------------------------------------------------
City Name | Population | Post Code |

I'm trying to reproduce this using asp.net. I guess I could manually code up a table to do this, but it seems like there should be a better way. By the looks of it this is not possible with a Gridview, without alot of hacking. I had thought a listview would do what I want, but it seems the grouping in that only lets you group by number of records, not by a parent field.

Is there anyway to do this using a .net control or should I be concentrating on doing it manually with a table and code in the aspx page.

A: 

IMHO you will be stuck using an HTML table

Use loops to group your data

WACM161
A: 

I've managed to get a solution using a list view, it's a bit of a hack, but it works well. See this page for details.

Sam Cogan