I have an arraylist which I’d like to display in a tabular fashion, but instead of one item per row, I’d like to do it like this:
item1 | item 2 | item 3 | item 4|
item 5 | etc.
Is there a control for this to which I can easily bind my data, or will I need to build the HTML out dynamically like I would have done in classic asp?
I know the best answer is probably ‘MVC’ but humor me.
You can use a Repeater or a DataList.
Here is an example with the repeater:
Code Behind
Markup