Repeat to the right?

  • Thread starter Thread starter Tommy
  • Start date Start date
T

Tommy

I have a page to create that displays rows with the fields vertically so
that each person's data can be viewed across. ie:

tom bob
2 4
4 32
11 21
53 16

Is there a way to do this with a repeater? I have used repeaters before to
go vertical but this is toally different than what I have seen and done.

If no then can a table be created on the fly and displayed within a web
form? I tried a literal control. I built my html table and then set the text
property to the literal control but it doesn't honor the html embedded in
the text property.

Thanks in advance.
 
Use a repeater, but simply let each ItemTemplate contain a row element:

<ItemTemplate>
<tr>
<td>Tommy</td><td>DataCell1</td><td>DataCell2</td>
</tr>
</ItemTemplate>
 
Tommy,

RepeatDirection="Horizontal"

Or

repeater.RepeatDirection = RepeatDirection.Horizontal;
 
Back
Top