Okay, so my title describes basically what I am looking to do, in terms of ASP.NET/HTML.
I'm hoping to be able to figure a way with someone's help to do this.
A certain report is being bound to a List of instances of a data class.
One of the Fields of this data class is a sub-list of Name/Value pairs - fees - with a short description and a dollar amount.
We do not want to just use a straight List or Table object to represent the fees, because they are mostly short, so this will lead to a huge chunk of dead space to the sides of the list.
We do not want to do a rotated layout with the List or Table going horizontally, because there could easily be 10 or 12 items, which would not fit on the width of the page. Unless the horizontal list/table would actually wrap at the edge of the page, would it?
If the horizontal list/table will NOT wrap at the edge of the page, then what we'd ideally like to do is essentially emulate the function of the ASP.NET Repeater control.
So say that we have the following data:
We'd IDEALLY like to have it layout like this:
Item1: Value1; Item2: Value2; Item3: Value3; Item4: Value4; Item5: Value5;
and have it wrap to fit the page. BUT, when it wraps, it needs to keep the matching item/value together, as if they were in an html NOBR tag like so:
What is the best way to get close to this and approximate this layout?