When I bind a list to my Repeater, it shows all the items in the list vertically.
Is it possible to show it horizontal?
Thanks
EDIT: I think I need to use HTML which I read from the comments.
When I bind a list to my Repeater, it shows all the items in the list vertically.
Is it possible to show it horizontal?
Thanks
EDIT: I think I need to use HTML which I read from the comments.
An alternative to the ASP.NET Repeater control is to use an ASP.NET DataList control, like this:
<asp:DataList ID="dlContacts" runat="server" RepeatLayout="Table" RepeatColumns="2" CellPadding="2" CellSpacing="2">
    <ItemTemplate>
        // Put your markup structure here
        <table>
            <tr>
                <td colspan="2">
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
Read ASP.NET DataList Rolodex for an example of how to implement this.
YEs you can.
on each element , wrap it / or apply to it a float style (float:left) or make it inline style and it will align left automatically : 
Out of the box, the Repeater control does not allow you to set the RepeatDirection. You can either use a DataList, which does have such property (RepeatDirection) or use CSS to make sure that elements render horizontally first until they fill the available width and then continue to the next row.