Tuesday, January 5, 2010

REPEATER IN HORIZONTAL DIRECTION

I've used repeater control for displaying multiple controls vertically in an aspx page. Due to the design changes in page, i want the controls to repeat horizontally in three columns and how many ever rows it may accommodate. There is no any option for giving repeater direction or is there any other option to make it


You could do something like this:


style type="text/css">
  .size1of3 { float: left; width: 33%; }
/style>
 div>

asp:repeater runat="server">
 itemtemplate>
    div class="size1of3">
      your display stuff here
    /div>
 /itemtemplate>
/asp:repeater>

br style="clear:left;"/>
/div>