Question

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.

Was it helpful?

Solution 3

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.

OTHER TIPS

IMHO you will be stuck using an HTML table

Use loops to group your data

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top