Hi Brian,
Based on my understanding, you want to display a string array every 5 items
per row in a table in Asp.net.
Instead of using Repeater control, I think DataList may be more suitable
for you. Do like this:
private void Page_Load(object sender, System.EventArgs e)
{
string [] arr=new string[11];
for(int i=0;i<11;i++)
{
arr[i]="string"+i;
}
this.DataList1.DataSource=arr;
this.DataList1.DataBind();
}
<asp:DataList id="DataList1" RepeatColumns="5" RepeatDirection="Horizontal">
<ItemTemplate>
<%# Container.DataItem.ToString()%>
</ItemTemplate>
</asp:DataList>
=============================
Please apply my suggestion above and let me know if it helps resolve your
problem.
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.