Come @numenor detto in this other answer, è solo una questione di ciò html che si usa. Ecco un esempio di come realizzare ciò che ti serve usando le tabelle html.
<table width="<%= this.TotalWidth %>">
<tr>
<asp:Repeater runat="server" ID="rptABC" OnItemDataBound="rptABC_ItemDataBound">
<ItemTemplate>
<td class="itemWidth">
Your item goes here and will be
displayed horizontally as a column.
</td>
</ItemTemplate>
</asp:Repeater>
</tr>
</table>
Nota che la larghezza è gestita con una proprietà lato server TotalWidth
che calcola la larghezza totale necessaria in base, ovviamente, il numero di elementi ripetitore verrà visualizzato. Si consiglia inoltre di creare una classe CSS per definire la larghezza di ciascun elemento per garantire un layout corretto.
protected string TotalWidth
{
get
{
//In this example this.Madibu.Materiales is the datasource for the Repeater,
//so this.Madibu.Materiales.Count is the column count for your table.
//75 must be equal to the width defined in CSS class 'itemWidth'
return (this.Madibu.Materiales.Count * 75).ToString() + "px";
}
}