Como dijo @numenor in this other answer, es sólo una cuestión de lo que se utiliza HTML. Aquí, un ejemplo de cómo lograr lo que necesita usando tablas 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>
Tenga en cuenta que el ancho se maneja con una propiedad del lado del servidor TotalWidth
que calcula la anchura total necesaria sobre la base de, por supuesto, el número de elementos repetidor mostrará. También se recomienda crear una clase de CSS para definir el ancho de cada elemento para garantizar el diseño adecuado.
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";
}
}